Difference between revisions of "Shell.switchTab"
From ComputerCraft Wiki
Bomb Bloke (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=shell.openTab |args= {{type|string}} program [, {{type|string}} args1, {{type|string}} args2, ...] |returns={{type|number}} newTabID |api=shell ...") |
Bomb Bloke (Talk | contribs) m |
||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
{{Function | {{Function | ||
− | |name=shell. | + | |name=shell.switchTab |
|args= {{type|string}} program [, {{type|string}} args1, {{type|string}} args2, ...] | |args= {{type|string}} program [, {{type|string}} args1, {{type|string}} args2, ...] | ||
− | |returns= | + | |returns= |
|api=shell | |api=shell | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |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. | + | |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: [[shell.run|shell.run()]], [[shell.openTab|shell.openTab()]] | See also: [[shell.run|shell.run()]], [[shell.openTab|shell.openTab()]] |
Revision as of 07:38, 4 April 2014
Function shell.switchTab | |
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.run(), shell.openTab() | |
Syntax | shell.switchTab(string program [, string args1, string args2, ...]) |
Returns | |
Part of | ComputerCraft |
API | shell |
Examples
Example | |
Runs the program "falling" in a new tab using shell.openTab(), then switches to it: | |
Code |
shell.switchTab( shell.openTab("falling") ) |