←  Ask a Pro

ComputerCraft | Programmable Computers for Minecraft

»

Wire up a monitor

maximdc's Photo maximdc 09 Apr 2014

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
Quote

CometWolf's Photo CometWolf 09 Apr 2014

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
Quote