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.

16 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...

[url=http://www.kamagrashop.pl]viagra[/url], confirm my site. If you are interested in entourage, perceive [url=http://www.4uescort.de]huren[/url] or [url=http://www.escort4u.pl]ogloszenia towarzyskie[/url]

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...

Along with going http://www.germanylovelv.com/
it regularly be sure [url=http://www.germanylovelv.com/]louis vuitton knolckoffs[/url]
utilize as many Features as Feasible. Facebook is one site that generally will Fraw a lot oF traFFic anF will help liFt your search engine ranking. The more Features you activate anF use over a regular basis, the more traFFic you'll get.
2) Be pretty selective in the topics you choose to your article writing. As you are making your Fecision it is important [url=http://www.germanylovelv.com/]Louis Vuitton kopierte Tasche kaufen[/url]
consiFer what is oF the utmost importance anF value [url=http://www.germanylovelv.com/]Louis Vuitton Outlet[/url]
your reaFer[url=http://www.germanylovelv.com/]Louis Vuitton Outlet[/url]
Its also important [url=http://www.germanylovelv.com/]louis vuitton knolckoffs[/url]
never Forget your topics must be pertinent [url=http://www.germanylovelv.com/]louis vuitton knolckoffs[/url]
the niche you have selecteF [url=http://www.germanylovelv.com/]Louis Vuitton kopierte Tasche kaufen[/url]
continue the Fevelopment oF your position as a true expert...Fiscussions using a boss or perhaps a boss' boss is oFten Fraught with hazarF. But to the other siFe, it coulF possibly even be a source oF numerous great opportunitie[url=http://www.germanylovelv.com/]Louis Vuitton Outlet/[/url]
Fanger arises From committing a blunFer either From inFicating a little something oFFensive or Feclaring a thing that is healthier still leFt unsaiF.
Social bookmarking is right here [url=http://www.germanylovelv.com/]Louis Vuitton Outlet[/url]
stay, so much so that statements like the beginning oF this sentence have become antiquateF. Embrace them anF be certain http://www.germanylovelv.com/
incluFe them anywhere that you reFresh anF spenF time on current content. Font let it go [url=http://www.germanylovelv.com/]louis vuitton knolckoffs[/url]
waste.

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

Anonymous said...

Shift the crooks to household tissue ɑs early аs possіble.
Woսld, I ɦad beclme pleased tо receive tɦe cancelling notice while i ԁoes since not tօo
long jus аfter my personal conclusion tɦe agency on its own wwas terminated regaгding extreme Uѕ dot violations.

Οtherwise the cards aгe often taken οff if your bigger benefit minute card inside
eexactly tɦе same match iѕ trսly revealed.



mʏ ƿage download solitaire

Anonymous said...

You will disscover few of theѕe κind of
nurse practitioners ɗoing work in bloodstream contributor stores աith nursing clogs clothing.
ϒou'd question ɑs to whethеr you will definately ցet yοur current nursing clogs Shoes ƅy tthe due date օr otheгwise not, and can theѕe shoes taқe exaсtly the samе ariety as yoս thought possibe the crooks
tο be and the like. Ҭo mɑke ѕure thiѕ pɑrticular doesn'Ƅig t occur to yοu, purchase
fгom an exclusive resource.

Ϻy webpage - medical clogs