Difference between revisions of "Term.write"

From ComputerCraft Wiki
Jump to: navigation, search
Line 11: Line 11:
 
|desc=Writes text to the screen.  
 
|desc=Writes text to the screen.  
 
This does not produce a new line, and anything else printed or written after this will be on the same line.
 
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!")
+
|code=term.write("Hello, World!")
|output=Hello, world!
+
|output=Hello, World!
 
}}
 
}}
 
}}
 
}}

Revision as of 21:17, 13 August 2012


Grid Redstone.png  Function term.write
Writes to the screen
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. 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!