shell.switchTab
From ComputerCraft Wiki
Revision as of 07:31, 4 April 2014 by 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 ...")
Function shell.openTab | |
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.openTab(string program [, string args1, string args2, ...]) |
Returns | number newTabID |
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") ) |