Difference between revisions of "Shell.programs"
From ComputerCraft Wiki
(Fixed the example. Requires mention of what it returns and arguments, and visual fixes.) |
m (Forgot to add a space at the front to declare it as code :-/) |
||
Line 3: | Line 3: | ||
== Example == | == Example == | ||
− | textutils.tabulate(shell.programs()) -- Would list all the programs like running the program "programs" | + | textutils.tabulate(shell.programs()) -- Would list all the programs like running the program "programs" |
− | textutils.tabulate(shell.programs(true)) -- Would list all programs including hidden ones that have a . prefix | + | textutils.tabulate(shell.programs(true)) -- Would list all programs including hidden ones that have a . prefix |
Revision as of 05:36, 20 April 2013
This page is a stub. Please help us by expanding it.
|
Shell.programs is a shell command used to list possible programs you can run, from programs that are in your current directory and programs that have an alias.
Example
textutils.tabulate(shell.programs()) -- Would list all the programs like running the program "programs" textutils.tabulate(shell.programs(true)) -- Would list all programs including hidden ones that have a . prefix