<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.computercraft.info/wiki/index.php?action=history&amp;feed=atom&amp;title=Shell.getCompletionInfo</id>
		<title>Shell.getCompletionInfo - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.computercraft.info/wiki/index.php?action=history&amp;feed=atom&amp;title=Shell.getCompletionInfo"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Shell.getCompletionInfo&amp;action=history"/>
		<updated>2026-07-11T08:01:15Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Shell.getCompletionInfo&amp;diff=7181&amp;oldid=prev</id>
		<title>Bomb Bloke: Created page with &quot;{{lowercase}} {{Function |name=shell.getCompletionInfo |returns={{Type|table}} completion function info |api=shell |addon=ComputerCraft |desc=Added by ComputerCraft 1.74, shel...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Shell.getCompletionInfo&amp;diff=7181&amp;oldid=prev"/>
				<updated>2015-08-02T00:34:48Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{lowercase}} {{Function |name=shell.getCompletionInfo |returns={{Type|table}} completion function info |api=shell |addon=ComputerCraft |desc=Added by ComputerCraft 1.74, shel...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{lowercase}}&lt;br /&gt;
{{Function&lt;br /&gt;
|name=shell.getCompletionInfo&lt;br /&gt;
|returns={{Type|table}} completion function info&lt;br /&gt;
|api=shell&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Added by ComputerCraft 1.74, shell.getCompletionInfo() returns a pointer to the table tracking completion functions set using [[shell.setCompletionFunction]]().&lt;br /&gt;
&lt;br /&gt;
Within the table are keys named after the programs that've been registered. These lead to sub-tables, with &amp;quot;fnComplete&amp;quot; keys which point to the registered functions. Note that the returned pointer leads to the original table, and not a copy, meaning that manipulating it will directly affect the [[shell.complete]]() function which relies upon it.&lt;br /&gt;
&lt;br /&gt;
See also: [[textutils.complete]](), [[shell.complete]](), [[shell.completeProgram]](), [[shell.setCompletionFunction]](), [[fs.complete]]() and [[help.completeTopic]]().&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Returns the table containing function info for the current set of registered scripts.&lt;br /&gt;
|code=&lt;br /&gt;
 shell.getCompletionInfo()&lt;br /&gt;
|output=A table formatted along these lines:&lt;br /&gt;
 {&lt;br /&gt;
  [&amp;quot;rom/programs/help&amp;quot;] = { [&amp;quot;fnComplete&amp;quot;] = &amp;lt;function&amp;gt; },&lt;br /&gt;
  [&amp;quot;rom/programs/cd&amp;quot;]   = { [&amp;quot;fnComplete&amp;quot;] = &amp;lt;function&amp;gt; },&lt;br /&gt;
  [&amp;quot;rom/programs/gps&amp;quot;]  = { [&amp;quot;fnComplete&amp;quot;] = &amp;lt;function&amp;gt; },&lt;br /&gt;
  -- etc&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
The paths defined by default are set by [https://github.com/alekso56/ComputercraftLua/blob/master/rom/startup the startup file in the rom directory]. &lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:API_Functions]]&lt;/div&gt;</summary>
		<author><name>Bomb Bloke</name></author>	</entry>

	</feed>