Difference between revisions of "Term.restore"
From ComputerCraft Wiki
m (Just a note regarding multiple redirects.) |
m (Moved to notes block and added links.) |
||
Line 1: | Line 1: | ||
− | |||
{{lowercase}} | {{lowercase}} | ||
{{Function | {{Function | ||
Line 13: | Line 12: | ||
|code=term.restore() | |code=term.restore() | ||
}} | }} | ||
+ | |notes= | ||
+ | * [[term.restore]]() will return the monitor to the last used redirect target - meaning that if you have used [[term.redirect]] on two different monitor objects, [[term.restore]]() will only restore back to the first redirected monitor. | ||
+ | * To restore output directly to the terminal, use [[term.redirect]]([[term.native]]). | ||
}} | }} | ||
[[Category:API_Functions]] | [[Category:API_Functions]] |
Revision as of 13:40, 23 January 2013
Function term.restore | |
Restores the program from running on a monitor to run on the computer | |
Syntax | term.restore() |
Returns | Nothing |
Part of | ComputerCraft |
API | term |
Examples
Example | |
Restores a program to the computer. This will only work if the computer was running a program on a monitor | |
Code |
term.restore() |
Additional Notes
- term.restore() will return the monitor to the last used redirect target - meaning that if you have used term.redirect on two different monitor objects, term.restore() will only restore back to the first redirected monitor.
- To restore output directly to the terminal, use term.redirect(term.native).