Difference between revisions of "Multishell.setFocus"
From ComputerCraft Wiki
MKlegoman357 (Talk | contribs) (Created the page) |
Magiczocker (Talk | contribs) m |
||
Line 14: | Line 14: | ||
}} | }} | ||
}} | }} | ||
+ | [[Category:API Functions]] |
Latest revision as of 07:59, 4 August 2020
Function multishell.setFocus | |
Makes the specified tab to be on top of any other tab (makes it visible to the user). | |
Syntax | multishell.setFocus(number tabID) |
Returns | boolean did the tab focused? |
Part of | ComputerCraft |
API | multishell |
Examples
Example | |
Focuses the currently running program. | |
Code |
local currentTabID = multishell.getCurrent() multishell.setFocus(currentTabID) |