Difference between revisions of "Term.redirect"
From ComputerCraft Wiki
(Created page with "{{lowercase}} {{Function |name=term.redirect |returns=None |api=term |addon=ComputerCraft |desc=Redirects terminal output to a monitor(By using peripheral.wrap() to get th...") |
|||
Line 9: | Line 9: | ||
{{Example | {{Example | ||
|desc=Prints "Hello World!" on the right monitor. | |desc=Prints "Hello World!" on the right monitor. | ||
− | |code=peripheral.wrap("right")<br>print("Hello World!") | + | |code=term.redirect(peripheral.wrap("right"))<br>print("Hello World!") |
|output=None | |output=None | ||
}} | }} | ||
}} | }} |
Revision as of 20:54, 4 August 2012
Function term.redirect | |
Redirects terminal output to a monitor(By using peripheral.wrap() to get the monitor object.) | |
Syntax | term.redirect() |
Returns | None |
Part of | ComputerCraft |
API | term |
Examples
Example | |
Prints "Hello World!" on the right monitor. | |
Code |
term.redirect(peripheral.wrap("right")) |
Output | None |