Difference between revisions of "Print"
From ComputerCraft Wiki
m (Reverted edits by 199.19.105.156 (talk) to last revision by AfterLifeLochie) |
Bomb Bloke (Talk | contribs) m |
||
Line 5: | Line 5: | ||
|api= | |api= | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Lets you print | + | |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
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
Example | |
Prints something. | |
Code |
print("Hello World!") |
Output | Hello World! |