idk lol
This commit is contained in:
parent
f8fd2513c8
commit
491112768c
27 changed files with 1095 additions and 3537 deletions
22
computer/24/startup.lua
Normal file
22
computer/24/startup.lua
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue