<?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.getBackgroundColor</id>
		<title>Term.getBackgroundColor - 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.getBackgroundColor"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Term.getBackgroundColor&amp;action=history"/>
		<updated>2026-07-11T06:00:58Z</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.getBackgroundColor&amp;diff=7078&amp;oldid=prev</id>
		<title>MKlegoman357: Created page with &quot;{{Lowercase}} {{Function |name=term.getBackgroundColor |args= |returns={{type|number}} color code |api=term |addon=ComputerCraft |desc=Gets the current background color of the...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Term.getBackgroundColor&amp;diff=7078&amp;oldid=prev"/>
				<updated>2015-06-28T12:18:36Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Lowercase}} {{Function |name=term.getBackgroundColor |args= |returns={{type|number}} color code |api=term |addon=ComputerCraft |desc=Gets the current background color of the...&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.getBackgroundColor&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 background color of the terminal. Returns the same decimal color codes as seen in [[Colors_(API)#Colors|this page]]. Also available as '''term.getBackgroundColour''' for British spelling.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
See also: [[term.setBackgroundColor]]()&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Prints the current background color of the terminal.&lt;br /&gt;
|code=local currentBackgroundColor = '''term.getBackgroundColor()'''&lt;br /&gt;
 &lt;br /&gt;
 [[print]]( &amp;quot;The current background color is: &amp;quot;, currentBackgroundColor )&lt;br /&gt;
}}&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Prints the current background color name (rather than the number) of the terminal.&lt;br /&gt;
|code=local currentBackgroundColor = '''term.getBackgroundColor()'''&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 == currentBackgroundColor 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 background 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>