Difference between revisions of "Multishell.launch"

From ComputerCraft Wiki
Jump to: navigation, search
(Created the page)
 
m
 
Line 15: Line 15:
 
  }}
 
  }}
 
}}
 
}}
 +
[[Category:API Functions]]

Latest revision as of 07:59, 4 August 2020


Grid Redstone.png  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

Grid paper.png  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")