Who knew about printf() in C being able to specify foreground/background colors?

view full story

http://www.linuxquestions.org – I got curious during the construction of my program to search for blocks of text that contain certain words, and wanted to print out blocks of text with the words I was searching for, initially, in ALL CAPS and seperated by tabs for easy identification. That got boring, though, so I thought, "Can printf do colors, too?" Yes it can.... Who knew? Code: /*Text attributes       0    All attributes off       1    Bold on       4    Underscore (on monochrome display adapter only)       5&nbs (HowTos)