This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Apfeldstrudel's profile picture

[Question, Solved] How would i make everything i write show on monitor?

Started by Apfeldstrudel, 23 March 2013 - 07:21 AM
Apfeldstrudel #1
Posted 23 March 2013 - 08:21 AM
Hello :D/>
NOTE: SOLVED! :D/>


What i want to do is show EVERYTHING i write (when i write programs) on a monitor while at the same time seing it on the screen.
I tried to call it like

monitor left edit program
but that didn't show up on the normal window D: please help
Lyqyd #2
Posted 23 March 2013 - 08:23 AM
Split into new topic.

Check out the Sync API topic in the APIs and Utilities subsection of the Programs section.
Apfeldstrudel #3
Posted 23 March 2013 - 08:54 AM
Split into new topic.

Check out the Sync API topic in the APIs and Utilities subsection of the Programs section.

I dont understand that, what does the target thing do.. D:
MysticT #4
Posted 23 March 2013 - 09:19 AM
You can use the addMonitor function to add the monitor.
Example:

os.loadAPI("sync")
sync.addMonitor("left") -- add the monitor on the left
sync.redirect(true) -- this makes the output to be on the monitor and the terminal
Put that in a program and run it. After that all the output should be seen on both the terminal and the monitor(s) you added.
Apfeldstrudel #5
Posted 24 March 2013 - 12:15 AM
Cool, thanks :D/>