Jump to content




Wire up a monitor

computer lua networking

2 replies to this topic

#1 maximdc

  • New Members
  • 1 posts

Posted 09 April 2014 - 07:29 AM

Is it possible to show up the same on a monitor as on a comuter and can you do that wired (or wireless)

i have a chat system on my server and i want to see my messages directly on my monitor

#2 CometWolf

  • Members
  • 1,283 posts

Posted 09 April 2014 - 02:57 PM

A quick way of doing this via networkking cables would be to just overwrite the global write function to write to a connected monitor aswell.
local monitor = peripheral.wrap() --i'm going to assume you know how this works
local write = _G.term.write -- backup the original write function
_G.term.write = function(sString) --overwrite it
  write(sString) --write to the terminal
  monitor.write(sString) --write to the monitor aswell
end  
Alternativly, if you've made this chat program you're using you should probably know where it writes to the terminal, so you could just make it write to a connected monitor aswell.
If you don't know how to use peripherals/monitors, check the wiki.
http://computercraft...dvanced_Monitor

#3 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 09 April 2014 - 10:32 PM

http://www.computerc...-on-monitor-v1/





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users