<?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=Term.getTextColor</id>
		<title>Term.getTextColor - 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=Term.getTextColor"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Term.getTextColor&amp;action=history"/>
		<updated>2026-07-11T07:17:46Z</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=Term.getTextColor&amp;diff=7076&amp;oldid=prev</id>
		<title>MKlegoman357 at 12:08, 28 June 2015</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Term.getTextColor&amp;diff=7076&amp;oldid=prev"/>
				<updated>2015-06-28T12:08:51Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 12:08, 28 June 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|api=term&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|api=term&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|addon=ComputerCraft&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|addon=ComputerCraft&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|desc=Gets the current &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;foreground &lt;/del&gt;color of the terminal. Returns the same decimal color codes as seen in [[Colors_(API)#Colors|this page]]. Also available as '''term.getTextColour''' for British spelling.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|desc=Gets the current &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;text &lt;/ins&gt;color of the terminal. Returns the same decimal color codes as seen in [[Colors_(API)#Colors|this page]]. Also available as '''term.getTextColour''' for British spelling.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;See also: [[term.setTextColor]]()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;See also: [[term.setTextColor]]()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key ccraft_wiki-mw_:diff:version:1.11a:oldid:7075:newid:7076 --&gt;
&lt;/table&gt;</summary>
		<author><name>MKlegoman357</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Term.getTextColor&amp;diff=7075&amp;oldid=prev</id>
		<title>MKlegoman357: Created page with &quot;{{Lowercase}} {{Function |name=term.getTextColor |args= |returns={{type|number}} color code |api=term |addon=ComputerCraft |desc=Gets the current foreground color of the termi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Term.getTextColor&amp;diff=7075&amp;oldid=prev"/>
				<updated>2015-06-28T12:08:02Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Lowercase}} {{Function |name=term.getTextColor |args= |returns={{type|number}} color code |api=term |addon=ComputerCraft |desc=Gets the current foreground color of the termi...&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=term.getTextColor&lt;br /&gt;
|args=&lt;br /&gt;
|returns={{type|number}} color code&lt;br /&gt;
|api=term&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Gets the current foreground color of the terminal. Returns the same decimal color codes as seen in [[Colors_(API)#Colors|this page]]. Also available as '''term.getTextColour''' for British spelling.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
See also: [[term.setTextColor]]()&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Prints the current text color of the terminal.&lt;br /&gt;
|code=local currentTextColor = '''term.getTextColor()'''&lt;br /&gt;
 &lt;br /&gt;
 [[print]]( &amp;quot;The current text color is: &amp;quot;, currentTextColor )&lt;br /&gt;
}}&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Prints the current text color name (rather than the number) of the terminal.&lt;br /&gt;
|code=local currentTextColor = '''term.getTextColor()'''&lt;br /&gt;
 local colorName = &amp;quot;Unknown&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 for key, value in pairs( colors ) do ''-- find the name of the color''&lt;br /&gt;
   if value == currentTextColor then&lt;br /&gt;
     colorName = key&lt;br /&gt;
     break&lt;br /&gt;
   end&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 [[print]]( &amp;quot;The current text color is: &amp;quot;, colorName )&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:API_Functions]]&lt;/div&gt;</summary>
		<author><name>MKlegoman357</name></author>	</entry>

	</feed>