Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.wrap("top")
- -- If using a build of ComputerCraft with term.current, record the current terminal output object:
- if mon then restoreto = term.current() end
- -- Redirect the terminal to the attached monitor:
- term.redirect(mon)
- print("helo")
- -- Restore back:
- if restoreto then
- term.redirect(restoreto)
- else
- term.restore()
- end
- print("vilag")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement