<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Visual C++ Tips &#187; set console text color</title>
	<atom:link href="http://weseetips.com/tag/set-console-text-color/feed/" rel="self" type="application/rss+xml" />
	<link>http://weseetips.com</link>
	<description>Gold mine of Visual C++ tricks!</description>
	<lastBuildDate>Thu, 11 Mar 2010 09:09:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to Set Console Text Color?</title>
		<link>http://weseetips.com/2009/03/29/how-to-set-console-text-color/</link>
		<comments>http://weseetips.com/2009/03/29/how-to-set-console-text-color/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 18:09:16 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Codeproject]]></category>
		<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[Windows APIs]]></category>
		<category><![CDATA[change console background color]]></category>
		<category><![CDATA[change console text color]]></category>
		<category><![CDATA[set console text color]]></category>
		<category><![CDATA[set text color]]></category>
		<category><![CDATA[SetConsoleTextAttribute()]]></category>
		<category><![CDATA[SetConsoleTextColor]]></category>
		<category><![CDATA[SetTextColor]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=963</guid>
		<description><![CDATA[Getting bored with the black and white console? Did you ever wish to change the text or background color of console? Image Courtesy &#8211; reginadowntown. Yes! You can use the api &#8211; SetConsoleTextAttribute(). See the code snippet below. // Set text color as Yellow with white background. SetConsoleTextAttribute( GetStdHandle( STD_OUTPUT_HANDLE ), FOREGROUND_INTENSITY &#124; // Set [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" alt="" width="166" height="32" /><br />
Getting bored with the black and white console? Did you ever wish to <span style="color:#0000ff;">change the text or background color of console?</span></p>
<p><img class="alignnone size-full wp-image-964" title="setconsoletextcolor" src="http://siteground205.com/~weseetip/wp-content/uploads/2009/03/setconsoletextcolor.jpg" alt="setconsoletextcolor" width="510" height="499" /><br />
Image Courtesy &#8211; <a href="http://www.reginadowntown.ca/events.php">reginadowntown</a>.</p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" alt="" width="220" height="32" /><br />
Yes! You can use the api &#8211; <span style="color:#0000ff;"><strong>SetConsoleTextAttribute()</strong></span>. See the code snippet below.</p>
<pre>// Set text color as Yellow with white background.
SetConsoleTextAttribute(
    GetStdHandle( STD_OUTPUT_HANDLE ),
    FOREGROUND_INTENSITY              | // Set Text color
    FOREGROUND_RED | FOREGROUND_GREEN | // Text color as Yellow.
    BACKGROUND_INTENSITY              | // Set Background color
    BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE ); // White Bg.</pre>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" alt="" width="94" height="32" /><br />
Please note that you can mix red/green/blue constants to make new colors. Have fun. <img src='http://weseetips.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img class="alignnone size-medium wp-image-51" title="beginnerseries" src="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2009/03/29/how-to-set-console-text-color/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

