PDA

View Full Version : Qt Console App modify test colour



Gavin Harper
18th December 2010, 12:58
Something I have been curious about for some time.

Is it possible under Qt to modify console text colour? I would like to add a verbose startup option to one of my applications that can do a green for OK and red for failed.

Thanks

tbscope
18th December 2010, 20:07
Yes,

The most correct way is to use NCurses since not all shells are equal.

However, you can do this for most shells without using a "comprehensive" library as NCurses.There are special codes you can put in your strings to blink the text, or print it in another color.
Google knows more. Search for bash or shell color codes.