Difference between revisions of "Shell.switchTab"
From ComputerCraft Wiki
Bomb Bloke (Talk | contribs) m |
Bomb Bloke (Talk | contribs) m |
||
| Line 8: | Line 8: | ||
|desc=Added by ComputerCraft 1.6, brings the specified tab to the foreground. As access to the [[Multishell_(API)|Multishell API]] is a requirement, this command is only available to advanced systems.<br><br> | |desc=Added by ComputerCraft 1.6, brings the specified tab to the foreground. As access to the [[Multishell_(API)|Multishell API]] is a requirement, this command is only available to advanced systems.<br><br> | ||
| − | See also: | + | See also: [[shell.openTab|shell.openTab()]] |
|examples= | |examples= | ||
{{Example | {{Example | ||
Latest revision as of 07:38, 4 April 2014
| Added by ComputerCraft 1.6, brings the specified tab to the foreground. As access to the Multishell API is a requirement, this command is only available to advanced systems. See also: shell.openTab() | |
| Syntax | shell.switchTab(string program [, string args1, string args2, ...]) |
| Returns | |
| Part of | ComputerCraft |
| API | shell |
Examples
| Runs the program "falling" in a new tab using shell.openTab(), then switches to it: | |
| Code |
shell.switchTab( shell.openTab("falling") )
|