http://www.computercraft.info/wiki/api.php?action=feedcontributions&user=24.176.45.177&feedformat=atom
ComputerCraft Wiki - User contributions [en]
2024-03-29T09:10:38Z
User contributions
MediaWiki 1.24.1
http://www.computercraft.info/wiki/index.php?title=Shell_(API)&diff=3112
Shell (API)
2012-09-22T08:09:33Z
<p>24.176.45.177: </p>
<hr />
<div>The shell API allows you to interface with the [http://en.wikipedia.org/wiki/Shell_%28computing%29 shell].<br />
<br />
==Methods==<br />
{| border="1" cellpadding="2" cellspacing="0"<br />
!style="background:#EEE" width="200px"|Method name<br />
!style="background:#EEE" width="*"|Description<br />
|-<br />
|[[shell.exit]]()<br />
|Exits the current shell<br />
|-<br />
|[[shell.dir]]()<br />
|Returns the directory<br />
|-<br />
|[[shell.setDir]]( path )<br />
|Sets the directory<br />
|-<br />
|[[shell.path]]()<br />
|Returns the path<br />
|-<br />
|[[shell.setPath]]( path )<br />
|Sets the path<br />
|-<br />
|[[shell.resolve]]( localpath )<br />
|Resolves a local path to an absolute path.<br />
|-<br />
|[[shell.resolveProgram]]( name )<br />
|Resolves the absolute path to the program whose name you provided.<br />
<br />
|-<br />
|[[shell.aliases]]()<br />
|Returns aliases.<br />
|-<br />
|[[shell.setAlias]]( alias, command )<br />
|Sets an alias.<br />
|-<br />
|[[shell.clearAlias]]( alias, command )<br />
|Clears an alias.<br />
|-<br />
|[[shell.programs]]()<br />
|Returns programs.<br />
|-<br />
|[[shell.run]]( program, arguments )<br />
|Runs a program.<br />
|-<br />
|[[shell.getRunningProgram]]()<br />
|Returns the absolute path to the currently-executing program.<br />
|-<br />
|}<br />
<br />
[[Category:APIs]]</div>
24.176.45.177