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

I need help with advanced monitor

Started by ZKlack, 23 May 2015 - 06:06 AM
ZKlack #1
Posted 23 May 2015 - 08:06 AM
first, sorry if you found my English bad because I'm Saudi.

if i type help monitors it shows me some of the codes but not all them and I didn't understand what are the codes doing to the monitor

I know some of the codes here are they

mon=peripheral.wrap("right")--this set mon is short for sepipheral.wrap("right") so every time i want to code the right monitor i type mon.<code>
mon.setCursorPos(6,4)--this tells where do i want to write
mon.write("Go ahead and learn ZKlack!!")--this write Go ahead and learn ZKlack!! in the monitor
I want to know all of the codes pleas but specially the coloring codes and the touch codes
* please tell me what is (the output)-(what the code will return)-(true, false, value of ****, any thing like that) of the codes you are giving me
—-thank you a lot—-
flaghacker #2
Posted 23 May 2015 - 08:58 AM
The wiki has a list of them here . If you wrap a monitor as a peripheral, it also has the setTextScale function which takes one number as a parameter, the scale.

To detect when someone touches the monitor, you'll have to use os.pullEvent ().
ZKlack #3
Posted 23 May 2015 - 01:05 PM
The wiki has a list of them here . If you wrap a monitor as a peripheral, it also has the setTextScale function which takes one number as a parameter, the scale.

To detect when someone touches the monitor, you'll have to use os.pullEvent ().
thank you a lot flaghacker
that was really helpful