Difference between revisions of "Term.redirect"
From ComputerCraft Wiki
m (Moved to CAT:APIFunctions) |
(Fixed return value) |
||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=term.redirect | |name=term.redirect | ||
| − | |returns= | + | |returns={{type|table}} previous terminal object |
|api=term | |api=term | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
Revision as of 01:29, 29 March 2014
| Redirects terminal output to a monitor (By using peripheral.wrap to get the monitor object.) or other redirect target. | |
| Syntax | term.redirect() |
| Returns | table previous terminal object |
| Part of | ComputerCraft |
| API | term |
Examples
| Prints "Hello World!" on the right monitor. | |
| Code |
term.redirect(peripheral.wrap("right"))
|
| Output | None |