Difference between revisions of "Shell (API)"
From ComputerCraft Wiki
Zalerinian (Talk | contribs) |
Zalerinian (Talk | contribs) |
||
Line 44: | Line 44: | ||
|Returns the absolute path to the currently-executing program. | |Returns the absolute path to the currently-executing program. | ||
|- | |- | ||
− | |shell. | + | |[[shell.setDiskBootPassword|shell.setDiskBootPassword("Password")]] |
|Sets a password that is required to boot from a disk. | |Sets a password that is required to boot from a disk. | ||
|} | |} | ||
[[Category:APIs]] | [[Category:APIs]] |
Revision as of 05:23, 6 May 2012
The shell API allows you to interface with the shell.
Method name | Description |
---|---|
shell.exit() | Exits the program |
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 ) | <no description given> |
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. |
shell.run( program, arguments ) | Runs a program. |
shell.getRunningProgram() | Returns the absolute path to the currently-executing program. |
shell.setDiskBootPassword("Password") | Sets a password that is required to boot from a disk. |