Difference between revisions of "Advanced Computer"
From ComputerCraft Wiki
m (Fixed reference to Paintutils API.) |
(Merged Peripheral table for Consoles into here.) |
||
Line 18: | Line 18: | ||
*[[Paint]] | *[[Paint]] | ||
*[[paintutils (API)]] | *[[paintutils (API)]] | ||
+ | |||
+ | == Peripheral Functions == | ||
+ | '''''computer'' stands for the variable you wrapped the computer to.''' | ||
+ | ''Example:'' computer = peripheral.wrap( "top" ) | ||
+ | |||
+ | {| class="wikitable" | ||
+ | !style="background:#EEE" width="210px"|Method name | ||
+ | !style="background:#EEE" width="*"|Description | ||
+ | |- | ||
+ | |computer.turnOn() | ||
+ | |Turns on the Computer or Turtle. | ||
+ | |- | ||
+ | |computer.shutdown() | ||
+ | |Shuts off the Computer or Turtle. | ||
+ | |- | ||
+ | |computer.reboot() | ||
+ | |Reboots the Computer or Turtle. | ||
+ | |- | ||
+ | |computer.getID() | ||
+ | |Gets the ID of the Computer or Turtle. | ||
+ | |} |
Revision as of 23:55, 28 November 2012
The advanced computer is a computer that has mouse and colour API support. More exclusive features may be added in another update. They resemble the traditional computer console, but are golden coloured to match their crafting recipe.Recipe
Exclusive Functions
- term.setTextColor(colors[<color>])
- term.setBackgroundColor(colors[<color>])
- (where <color> is the color as a string, like: "blue".)
NOTE: The colours table can be used instead of the colors table, the colours table exists because of spelling differences in "U.S. English" and "English English". The term.setTextColour() and term.setBackgroundColour() functions also exist for this same reason.
Exclusive Programs & APIs
Peripheral Functions
computer stands for the variable you wrapped the computer to. Example: computer = peripheral.wrap( "top" )
Method name | Description |
---|---|
computer.turnOn() | Turns on the Computer or Turtle. |
computer.shutdown() | Shuts off the Computer or Turtle. |
computer.reboot() | Reboots the Computer or Turtle. |
computer.getID() | Gets the ID of the Computer or Turtle. |