Difference between revisions of "Term (API)"
From ComputerCraft Wiki
(Made page. Randomly guessed on most stuff.) |
|||
Line 9: | Line 9: | ||
*term.getSize() which gets the size of the terminal | *term.getSize() which gets the size of the terminal | ||
*term.scroll( n ) which scrolls the terminal | *term.scroll( n ) which scrolls the terminal | ||
+ | [[Category:APIs]] |
Revision as of 00:02, 29 January 2012
The Terminal API provides functions for messing around with the terminal. Useful for ASCII. Its functions are:
- term.write( text ) which is obvious; adds text to the screen. This however, does it at the position of the cursor.
- term.clear() which clears the screen
- term.clearLine() which clears the current line
- term.getCursorPos() which gets the position of the cursor
- term.setCursorPos( x, y ) which moves it around
- term.setCursorBlink( b ) which disables the annoying blinking. Good for if you're doing ASCII
- term.getSize() which gets the size of the terminal
- term.scroll( n ) which scrolls the terminal