From 75952c1580a48e03a133d06e5fbaa023cad50980 Mon Sep 17 00:00:00 2001 From: kepler155c Date: Sat, 23 Sep 2017 23:04:46 -0400 Subject: [PATCH] monitor manager --- apps/chestManager.lua | 2 -- apps/monitorManager.lua | 11 +++-------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/apps/chestManager.lua b/apps/chestManager.lua index b129f76..f24a8db 100644 --- a/apps/chestManager.lua +++ b/apps/chestManager.lua @@ -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 diff --git a/apps/monitorManager.lua b/apps/monitorManager.lua index 3a604f8..28a5e46 100644 --- a/apps/monitorManager.lua +++ b/apps/monitorManager.lua @@ -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)