From ComputerCraft Wiki
Jump to: navigation, search

Grid Redstone.png  Function print
Lets you print anything to the terminal, automatically applies word-wrapping and scrolls down the display if needed. Prints all given arguments by using tostring() on them first. If no arguments are given, sets the cursor down a line and scrolls down if needed. For prompted scrolling, see textutils.pagedPrint(); to avoid word-wrapping, see term.write().
Syntax print(string text)
Returns number count of how many lines where printed
Part of ComputerCraft
API none


Grid paper.png  Example
Prints "Hello World!" on the computer's screen.
print("Hello World!")
Output Hello World!