From ComputerCraft Wiki
Revision as of 17:28, 2 June 2014 by MKlegoman357 (Talk | contribs) (Expanded)

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

Grid Redstone.png  Function multishell.getCurrent
Returns the tab ID of the currently running program. You can use this along with other multishell functions, such as, multishell.getTitle and multishell.setTitle.
Syntax multishell.getCurrent()
Returns number tabID
Part of ComputerCraft
API multishell


Grid paper.png  Example
Gets the currently running tab and prints it's title.
local currentTabID = multishell.getCurrent()

Output The title of the currently running program (tab)