Difference between revisions of "Print"

From ComputerCraft Wiki
Jump to: navigation, search
m (Reverted edits by 199.19.105.156 (talk) to last revision by AfterLifeLochie)
m
Line 5: Line 5:
 
|api=
 
|api=
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Lets you print the string on the terminal.
+
|desc=Lets you print a string to the terminal, automatically word-wrapping and scrolling down the display as need be. (For prompted scrolling, see [[Textutils.pagedPrint|textutils.pagedPrint()]]; to avoid word-wrapping, see [[Term.write|term.write()]].)
 
|examples=
 
|examples=
 
{{Example
 
{{Example

Revision as of 13:10, 22 February 2014


Grid Redstone.png  Function print
Lets you print a string to the terminal, automatically word-wrapping and scrolling down the display as need be. (For prompted scrolling, see textutils.pagedPrint(); to avoid word-wrapping, see term.write().)
Syntax print(string)
Returns nil
Part of ComputerCraft
API none

Examples

Grid paper.png  Example
Prints something.
Code
print("Hello World!")
Output Hello World!