From 863f343646cb4fe2b7a6674fa99ad23c1f3aff10 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Tue, 8 Jan 2019 18:05:20 +1100 Subject: [PATCH] made spawnprompt set the terminal correctly --- module/spawnprompt.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/spawnprompt.lua b/module/spawnprompt.lua index 4ec07a4..286a2a6 100644 --- a/module/spawnprompt.lua +++ b/module/spawnprompt.lua @@ -2,8 +2,9 @@ os.spawn(function() print(_OSVERSION,tostring(computer.totalMemory()/1024).."K memory") for k,v in pairs(fd) do if v.t == "t" then - tTasks[cPid].t = k + os.setenv("t") = k print("Spawning Lua prompt for "..tostring(k)) + os.setenv("PWD","/boot") os.spawn(function() print(pcall(function() while true do io.write(_VERSION.."> ") tResult = {pcall(load(io.read()))}