multishell.getFocus
| multishell.getFocus Function | |
|---|---|
|
Syntax multishell.getFocus() | |
| Returns | number id |
| API | multishell |
| Source | CC:Tweaked (source) |
Returns the id of the focused tab.
|
|||
| Get the focused tab id and print it. | |||
| Code | <nowiki>
print(multishell.getFocus())
</nowiki>
|
||
| Output | 1
|
||
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.