Jump to content




Desplaying what is on a computer to a monitor

computer

  • You cannot reply to this topic
4 replies to this topic

#1 Mr_Programmer

  • Members
  • 95 posts
  • LocationA CPU some where in Bolton, UK

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

#2 Csstform

  • Members
  • 410 posts
  • LocationU.S.A.

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 by Csstform, 09 January 2014 - 10:44 AM.


#3 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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.

#4 Mr_Programmer

  • Members
  • 95 posts
  • LocationA CPU some where in Bolton, UK

Posted 09 January 2014 - 11:29 PM

View PostLyqyd, on 09 January 2014 - 10:50 AM, said:

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 :(

#5 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 09 January 2014 - 11:36 PM

There's a search bar for a reason. Check out that first link.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users