This commit is contained in:
Crispy 2025-06-22 00:08:46 +02:00
parent f8fd2513c8
commit 491112768c
27 changed files with 1095 additions and 3537 deletions

22
computer/24/startup.lua Normal file
View file

@ -0,0 +1,22 @@
rednet.open("left")
forward = {}
for i,v in pairs(term.native()) do
forward[i] = function(...)
rednet.send(5,{i,{...}})
return v(...)
end
end
term.redirect(forward)
parallel.waitForAny(
function()
shell.run("shell")
end,
function()
while true do
id,message,protocol =
rednet.receive("pocketevent")
os.queueEvent(unpack(message))
end
end
)
shell.exit()