From ComputerCraft Wiki
Revision as of 07:38, 4 April 2014 by Bomb Bloke (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Grid Redstone.png  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.openTab()
Syntax shell.switchTab(string program [, string args1, string args2, ...])
Part of ComputerCraft
API shell


Grid paper.png  Example
Runs the program "falling" in a new tab using shell.openTab(), then switches to it:
shell.switchTab( shell.openTab("falling") )