Difference between revisions of "Multishell.launch"
From ComputerCraft Wiki
MKlegoman357 (Talk | contribs) (Created the page) |
Magiczocker (Talk | contribs) m |
||
Line 15: | Line 15: | ||
}} | }} | ||
}} | }} | ||
+ | [[Category:API Functions]] |
Latest revision as of 07:59, 4 August 2020
Function multishell.launch | |
Runs the program located at programPath, passing it all given arguments (argument1, argument2 and so on). Just like with os.run any values in the environment table will be seen by the program. This function returns the ID of this program's tab. | |
Syntax | multishell.launch(table environment, string programPath, argument1, argument2, ...) |
Returns | number the ID of the new tab |
Part of | ComputerCraft |
API | multishell |
Examples
Example | |
Runs Interactive Lua Interpreter in a new tab and sets its name to "Lua Interpreter". | |
Code |
local newTabID = multishell.launch({}, "rom/programs/lua") multishell.setTitle(newTabID, "Lua Interpreter") |