Wednesday, July 16, 2008

ANSI Color Codes in C++

I finally got around to figuring out how to get C++ to output text in different colors (assuming your output system (terminal) supports it). It's not at all difficult , it just requires knowing the string representations of the ANSI color codes. I haven't tried it with C/printf but I can't see why it wouldn't work the same way.

12 comments:

Anonymous said...

Have you found a way to do it with C too ?

Seppo/Helsinki

Anonymous said...

Hi,

Thanks for sharing the link - but unfortunately it seems to be down? Does anybody here at majuscule.blogspot.com have a mirror or another source?


Thanks,
James

gavin hurley said...

The link to the source was down? It's working for me so maybe it was a transient error. Let me know if you still have problems.

Anonymous said...

We have missed the th type[url=http://www.PatrickWillisJersey.net]Patrick Willis Jersey[/url]
the rare breed: The Superior Presenters The Rams haven't been much better this year[url=http://www.robertgriffiniiijersey.net]www.robertgriffiniiijersey.net[/url]
but have also had many players get hurt this season -Wikipedia Thanks Lighty was involved with the largest brand endorsement deal in hip-hop history[url=http://www.MikeWallaceJersey.com]www.MikeWallaceJersey.com[/url]
branding 50 Cent’s “Vitamin Water” product
Sirius was the first to offer commercial free programming on its music channels[url=http://www.elimanningjersey.net]eli manning womens jersey[/url]
but both Siruis and XM now have commercial free programmingauthor img float: left; margin: 0px 7px 0px 0px; ptwitreply > span background-position: 0px 3px; div27 Among the most important components that make up a garden are flowers

Anonymous said...

[url=http://www.freewebs.com/effexorpills]generic venlafaxine effexor xr
[/url]venlafaxine lp zydus
buy cheap effexor
venlafaxine hcl webmd
venlafaxine high
effexor 200 mg

Anonymous said...

clomid success rate pcos | http://buyclomidonline.webs.com/#41154 - cheap clomid without prescriptions, does clomid make your cycle longer

Anonymous said...

clomid 100mg success | second cycle of clomid - buy clomid for men, iui clomid twins

Anonymous said...

nolvadex clomid pct dosage | [url=http://orderclomid.jimdo.com/#10333]free clomid samples[/url] - how to get clomid prescription, prye clomid without period

Anonymous said...

top [url=http://www.c-online-casino.co.uk/]casino bonus[/url] coincide the latest [url=http://www.realcazinoz.com/]casino games[/url] free no deposit reward at the best [url=http://www.baywatchcasino.com/]www.baywatchcasino.com
[/url].

Anonymous said...

Hello. And Bye. Thank you very much.

Anonymous said...

[url=http://www.freewebs.com/muslimpharmacistsassociation/apps/profile/106980315/]Purchase Cheap Xenical tablets Online No prescription! Discount Pharmacy[/url] Purchase Cheap Xenical tablets Online No prescription! Discount Pharmacy Purchase Cheap Xenical tablets Online No prescription! Discount Pharmacy
[url=http://www.freewebs.com/muslimpharmacistsassociation/apps/profile/106989910/]Buy Discount Celebrex Online No prescription! Discount Pharmacy[/url] Buy Discount Celebrex Online No prescription! Discount Pharmacy Buy Discount Celebrex Online No prescription! Discount Pharmacy
[url=http://www.freewebs.com/muslimpharmacistsassociation/apps/profile/106996438/]Buy Cheap Cipro tablets Online No prescription![/url] Buy Cheap Cipro tablets Online No prescription! Buy Cheap Cipro tablets Online No prescription!
[url=http://www.freewebs.com/muslimpharmacistsassociation/apps/profile/106994925/]Buy Discount Levaquin Online No prescription![/url] Buy Discount Levaquin Online No prescription! Buy Discount Levaquin Online No prescription!


http://www.freewebs.com/muslimpharmacistsassociation/apps/profile/106995691/
http://www.freewebs.com/muslimpharmacistsassociation/apps/profile/106993968/
http://www.freewebs.com/muslimpharmacistsassociation/apps/profile/106996438/
http://www.freewebs.com/muslimpharmacistsassociation/apps/profile/106993827/

Anonymous said...

The other day, while I was at work, my sister stole my iPad and tested to see if it can survive a forty foot drop,
just so she can be a youtube sensation. My iPad is now broken
and she has 83 views. I know this is completely off topic but I had to
share it with someone!

my web site ... losing weight fast