multishell.setTitle

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

Examples

Grid paper.png  Example
Changes the title of currently active program to "My Program".
Code
local currentTabID = multishell.getCurrent()

multishell.setTitle(currentTabID, "My Program")