Difference between revisions of "Advanced Monitor"
From ComputerCraft Wiki
MathManiac0 (Talk | contribs) m (Setting CORRECT functions for Adv. monitor; was term.setTextColor/setBackgroundColor instead of monitor.setTextColor/setBackgroundColor.) |
(Undo revision 3785 by MathManiac0 (talk) monitor is NOT an API. it may be confusing to some people. monitor.setTextColor is the same as term. ,ecxept it's wrapped) |
||
Line 28: | Line 28: | ||
There are two new functions (four including the british-spelled color (colour)): | There are two new functions (four including the british-spelled color (colour)): | ||
− | [[ | + | [[term.setTextColor|setTextColor]]([[color (API)|(color)]]) |
− | [[ | + | [[term.setBackgroundColor|setBackgroundColor]]([[color (API)|(color)]]) |
[[Category:Blocks]] | [[Category:Blocks]] |
Revision as of 15:18, 17 November 2012
The Advanced Monitor is a new, improved version of the monitor. It has the ability to show coloured text and programs on the screen. It is also golden colored on it's sides, similar to the Advanced Computer. For available colors, see Colors API.
Recipe
Using an Advanced Monitor
See Peripheral (API) for more details.
To use an Advanced Monitor, you need to call a method using the Peripheral API. This is one example:
peripheral.call("side", "function", var1, var2, ...)
For example:
peripheral.call("top", "write", "Hello World!")
You can also "wrap" the peripheral side to a variable:
local monitor = peripheral.wrap("top")
Now, you can call functions that way.
monitor.write("Hello World!")
There are two new functions (four including the british-spelled color (colour)):