Difference between revisions of "Multishell.getTitle"
From ComputerCraft Wiki
MKlegoman357 (Talk | contribs) (Created the page) |
Magiczocker (Talk | contribs) m |
||
Line 16: | Line 16: | ||
}} | }} | ||
}} | }} | ||
+ | [[Category:API Functions]] |
Latest revision as of 07:58, 4 August 2020
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
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. |