scrolling windows

This commit is contained in:
kepler155c@gmail.com
2016-12-14 13:54:13 -05:00
parent 48f16ce2c7
commit e25f4f9319
7 changed files with 87 additions and 97 deletions

View File

@@ -455,7 +455,7 @@ end)
local function startup()
local hasError
local function runDir(directory, open)
local function runDir(directory, desc, open)
if not fs.exists(directory) then
return
end
@@ -464,8 +464,8 @@ local function startup()
table.sort(files)
for _,file in ipairs(files) do
print('Autorunning: ' .. file)
print(desc .. file)
os.sleep(0)
local result, err = open(directory .. '/' .. file)
if not result then
printError(err)
@@ -474,7 +474,7 @@ local function startup()
end
end
runDir('/sys/extensions', shell.run)
runDir('/sys/extensions', '[ ext ] ', shell.run)
local overviewId = multishell.openTab({
path = '/apps/Overview.lua',
@@ -484,8 +484,8 @@ local function startup()
})
overviewTab = tabs[overviewId]
runDir('/sys/services', shell.openHiddenTab)
runDir('/autorun', shell.run)
runDir('/sys/services', '[ svc ] ', shell.openHiddenTab)
runDir('/autorun', '[ aut ] ', shell.run)
if hasError then
error('An autorun program has errored')