multishell.setFocus

From ComputerCraft Wiki
Revision as of 10:50, 3 June 2014 by MKlegoman357 (Talk | contribs) (Created the page)

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


Grid Redstone.png  Function multishell.setFocus
Makes the specified tab to be on top of any other tab (makes it visible to the user).
Syntax multishell.setFocus(number tabID)
Returns boolean did the tab focused?
Part of ComputerCraft
API multishell

Examples

Grid paper.png  Example
Focuses the currently running program.
Code
local currentTabID = multishell.getCurrent()

multishell.setFocus(currentTabID)