Difference between revisions of "Term.write"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:APIFunctions)
m (Does not apply word-wrap.)
Line 6: Line 6:
 
|api=term
 
|api=term
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Writes to the screen
+
|desc=Writes to the screen without automatically going down a line. Does not apply word-wrap, unlike [[write|write()]] or [[print|print()]].
 
|examples=
 
|examples=
 
{{Example
 
{{Example

Revision as of 13:10, 22 February 2014


Grid Redstone.png  Function term.write
Writes to the screen without automatically going down a line. Does not apply word-wrap, unlike write() or print().
Syntax term.write(string text)
Returns Text written on the screen
Part of ComputerCraft
API term

Examples

Grid paper.png  Example
Writes text to the screen, at the cursor's current position. This does not produce a new line, and anything else printed or written after this will be on the same line.
Code
term.write("Hello, World!")
Output Hello, World!