1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-12-25 20:21:25 -05:00

made spawnprompt set the terminal correctly

This commit is contained in:
XeonSquared 2019-01-08 18:05:20 +11:00
parent 8b35bfe3a6
commit 863f343646

View File

@ -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()))}