multishell.getTitle

From ComputerCraft Wiki
Revision as of 10:30, 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.getTitle
Returns the title of a tab with ID tabID.
Syntax multishell.getTitle(number tabID)
Returns string the title of the tab
Part of ComputerCraft
API multishell

Examples

Grid paper.png  Example
Prints the title of currently focused program.
Code
local focusedTabID = multishell.getFocus()
local focusedTabTitle = multishell.getTitle(focusedTabID)

print(focusedTabTitle)
Output The title of currently focused tab.