Shell API

From ComputerCraft
Jump to: navigation, search

Shell.aliases Shell.clearAlias Shell.complete Shell.completeProgram Shell.dir Shell.exit Shell.getCompletionInfo Shell.getRunningProgram Shell.openTab Shell.path Shell.programs Shell.resolve Shell.resolveProgram

FunctionFunctionshell.run
Runs a command in the computer's or turtle's shell.
Syntax shell.run()
Returns boolean success
Part of CC:Tweaked
API shell
ExampleExampleExecute a command in the shell
Open the lua interface
Code
shell.run("lua")
Output
true if it was successful, or false if it was unsuccessful.

Shell.setAlias Shell.setCompletionFunction Shell.setDir Shell.setPath Shell.switchTab