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

Desplaying what is on a computer to a monitor

Started by Mr_Programmer, 09 January 2014 - 05:10 AM
Mr_Programmer #1
Posted 09 January 2014 - 06:10 AM
so i am working on a computercraft college on a server that i play on, and was wondering if there is a way to show what i am writing but on a monitor, so i would be making a program and i would be writing it on computor but the people learning would be able to so it on a monitor aswell, to make it simple what i am writing on a computer will show up on the monitor at the same time.

if anyone could help, it would be much appresheated

thanks
Csstform #2
Posted 09 January 2014 - 10:42 AM
This may work:

n = 1
while n == 1 do
   output = read()
   if output == "exit" then
      shell.reboot()
   else
      print(output)
    end
end

Run this on the monitor and you have live text. Try adapting it so that it also saves the code somewhere.
Edited on 09 January 2014 - 09:44 AM
Lyqyd #3
Posted 09 January 2014 - 10:50 AM
Or completely ignore the advice above and look around the forums for one of the many screen mirroring/cloning APIs.
Mr_Programmer #4
Posted 09 January 2014 - 11:29 PM
Or completely ignore the advice above and look around the forums for one of the many screen mirroring/cloning APIs.
i cant find one would be able to link one as i have spent 1hr lookign for 1 :(/>
Lyqyd #5
Posted 09 January 2014 - 11:36 PM
There's a search bar for a reason. Check out that first link.