multishell.getFocus

From ComputerCraft
Jump to: navigation, search

multishell.getFocus
Function
Syntax
multishell.getFocus()
Returns number id
API multishell
Source CC:Tweaked (source)

Returns the id of the focused tab.

ExampleExampleGet the focused tab id.
Get the focused tab id and print it.
Code
print(multishell.getFocus())
Output
1