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

[lua] Monitor and Terminal loop

Started by timyo24, 11 August 2012 - 12:06 AM
timyo24 #1
Posted 11 August 2012 - 02:06 AM
I have a program set to use the monitor with a loop instead of the terminal, but i am wondering is there any way for me to set up in that program a way to be able to use the monitor and the terminal at the same time? I teach friends how to code, and so it would be nice for them to watch on the monitor while i can see my coding on the terminal. If you can give me a code for that i would highly appreciate that! ;)/>/>
Pharap #2
Posted 11 August 2012 - 04:05 AM
Sure.

Instead of editing normally, when you are about to edit your code, type this instead:

monitor (side of monitor) edit (program)

typing monitor, then a side, then a program and it's arguments will run the chosen program on the monitor for all to see.It works with all programs.

Hope this helps ;)/>/>
Lyqyd #3
Posted 11 August 2012 - 04:08 AM
Pharap's advice will work if you want it to be visible only on the monitor. To use both at once, you'll want something like this API. I don't know if there's a more updated version of it.
timyo24 #4
Posted 11 August 2012 - 04:44 AM
Pharap's advice will work if you want it to be visible only on the monitor. To use both at once, you'll want something like this API. I don't know if there's a more updated version of it.

Thank you so much! It worked!