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

Simple Monitor command (I think)

Started by Orb_29, 11 April 2015 - 09:26 AM
Orb_29 #1
Posted 11 April 2015 - 11:26 AM
I cannot work out a command to show what i'm writing on a monitor and on the computer i'm pretty sur it's a really simple command sorry for wasting time
Bomb Bloke #2
Posted 11 April 2015 - 11:29 AM
http://www.computercraft.info/forums2/index.php?/topic/21724-request-i-need-somebody-to-make-a-working-monitor-program/
Orb_29 #3
Posted 11 April 2015 - 11:31 AM
this is for tekkit classic
Bomb Bloke #4
Posted 11 April 2015 - 11:46 AM
Odds are all you'd need to change is the first line; instead of peripheral.find("monitor"), use peripheral.wrap("whatever side your monitor is on").

Eg:

local monitors = {peripheral.wrap("top")}

Or if you've got more than one monitor, you might do:

local monitors = {peripheral.wrap("top"), peripheral.wrap("left")}
Mining_Pickaxe #5
Posted 11 April 2015 - 01:55 PM
So for example:


local m = peripheral.wrap("top")
m.print("Test")
KingofGamesYami #6
Posted 11 April 2015 - 04:17 PM
@Mining_Pickaxe not only will that not work, it's not what he was asking for in the first place, and will error rather embarrassingly if you run it.