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

Basic Message on a monitor?

Started by Kairi091, 04 May 2015 - 02:05 AM
Kairi091 #1
Posted 04 May 2015 - 04:05 AM
So, I'm super new to this computercraft stuff. I've successfully used pastebin to grab a couple of pieces of code that did what I wanted. But now I want something really basic and I have no idea how to do it.

I just want a program that will display a few lines of a message on a 4x3 monitor. I have a complex system in a room and I want a monitor to permanently display instructions for players unfamiliar with the system.

I'm sure it's a pretty basic and easy program to write. If someone can point me toward some tutorials or explain the basics of how I'd do this.

Thanks guys!
Dragon53535 #2
Posted 04 May 2015 - 06:48 AM

local monitor = peripheral.wrap("right") --# Change the right to whatever side the monitor is on for the computer. Sides are: front, back, left, right, top, bottom.
monitor.setCursorPos(1,1) --#Set the spot to write on the monitor to the top left
monitor.write("message") --# Add as many of these as you need for your message.
monitor.setCursorPos(1,2) --#Down a line on the left wall.