monitor manager

This commit is contained in:
kepler155c
2017-09-23 23:04:46 -04:00
parent 2b1b04d764
commit 75952c1580
2 changed files with 3 additions and 10 deletions

View File

@@ -725,8 +725,6 @@ local function getTurtleInventory()
local items = turtleChestAdapter:listItems()
_, inventory[i] = next(items)
turtleChestAdapter:extract(1, qty, i)
debug(inventory[i])
read()
end
end
return inventory

View File

@@ -5,12 +5,7 @@ local Util = require('util')
local function syntax()
printError('Syntax:')
printError('Start a new session')
print('monitorManager start [configFile] [monitor]')
print()
printError('Run programs in session')
print('monitorManager run [program] [arguments]')
print()
print('monitorManager [session file] [monitor]')
error()
end
@@ -281,7 +276,7 @@ function defaultEnv.multishell.setTitle(uid, title)
local process = Util.find(processes, 'uid', uid)
if process then
process.title = title or ''
process:focus(processs == processes[#processes])
process:focus(process == processes[#processes])
end
end
@@ -367,7 +362,7 @@ local function addShell()
process.co = coroutine.create(function()
while true do
os.run(defaultEnv, shell.resolveProgram('shell'))
os.run(Util.shallowCopy(defaultEnv), shell.resolveProgram('shell'))
end
end)