Difference between revisions of "Term.redirect"
From ComputerCraft Wiki
Line 5: | Line 5: | ||
|api=term | |api=term | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Redirects terminal output to a monitor (By using [[peripheral.wrap]] to get the monitor object.) | + | |desc=Redirects terminal output to a monitor (By using [[peripheral.wrap]] to get the monitor object.) or other redirect target. |
|examples= | |examples= | ||
{{Example | {{Example |
Revision as of 09:27, 24 November 2012
Function term.redirect | |
Redirects terminal output to a monitor (By using peripheral.wrap to get the monitor object.) or other redirect target. | |
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 |