shell.openTab

Run a program in a new multishell tab in the shell enviroment.

shell.openTab
Function
Syntax
shell.openTab(
  • command : string
  • args...? : string
)

Returns number tabid
API shell
Source CC:Tweaked (source)

This function only exits if multishell is enabled.

ExampleRun a Program in a new tab.
Run "lua" in a new tab.
Code
<nowiki>
shell.openTab("lua")
    </nowiki>
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.