Term (API)
From ComputerCraft Wiki
Revision as of 20:00, 28 January 2012 by Kaleb702 (Talk | contribs) (Made page. Randomly guessed on most stuff.)
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