move apis into rom/modules/main for shell compatibility

This commit is contained in:
kepler155c@gmail.com
2019-06-28 13:50:34 -04:00
parent d4e379af2e
commit b8544644b7
142 changed files with 613 additions and 3869 deletions

View File

@@ -1,4 +1,4 @@
local Util = require('util')
local Util = require('opus.util')
local shell = _ENV.shell

View File

@@ -380,7 +380,7 @@ for _,dir in ipairs(dirsArg) do
end
end
io.output():setvbuf("line")
--io.output():setvbuf("line")
local ok, msg = pcall(function()
if #file_set > 0 then display(sort(file_set)) end
@@ -389,7 +389,7 @@ local ok, msg = pcall(function()
end)
io.output():flush()
io.output():setvbuf("no")
--io.output():setvbuf("no")
set_color()
if not ok then