multishell.getFocus

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

Returns the id of the focused tab.

ExampleGet the focused tab id.
Get the focused tab id and print it.
Code
<nowiki>
print(multishell.getFocus())
    </nowiki>
Output
1
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.