Shell (API)

From ComputerCraft Wiki
Revision as of 23:50, 2 July 2012 by (Talk) (Methods)

Jump to: navigation, search

The shell API allows you to interface with the shell.


Method name Description
shell.exit() Exits the program (the shell if no program is open)
shell.dir() Returns the directory
shell.setDir( path ) Sets the directory
shell.path() Returns the path
shell.setPath( path ) Sets the path
shell.resolve( localpath ) Resolves a local path to an absolute path.
shell.resolveProgram( name ) <no description given>
shell.aliases() Returns aliases.
shell.setAlias( alias, command ) Sets an alias.
shell.clearAlias( alias, command ) Clears an alias.
shell.programs() Returns programs. program, arguments ) Runs a program.
shell.getRunningProgram() Returns the absolute path to the currently-executing program.