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

Wire up a monitor

Started by maximdc, 09 April 2014 - 06:29 AM
maximdc #1
Posted 09 April 2014 - 08: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
CometWolf #2
Posted 09 April 2014 - 03: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.info/wiki/Advanced_Monitor
Bomb Bloke #3
Posted 09 April 2014 - 11:32 PM
http://www.computercraft.info/forums2/index.php?/topic/15873-mirror-utility-program-contents-of-computer-screen-on-monitor-v1/