term.redirect

From ComputerCraft Wiki
Revision as of 13:06, 22 September 2012 by 91.147.227.194 (Talk)

Jump to: navigation, search


Grid Redstone.png  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

Grid paper.png  Example
Prints "Hello World!" on the right monitor.
Code
term.redirect(peripheral.wrap("right"))
print("Hello World!")
Output None