How do I output coloured text to a Linux terminal?

Posted by Macha on Stack Overflow See other posts from Stack Overflow or by Macha
Published on 2010-04-11T11:58:06Z Indexed on 2010/04/11 12:03 UTC
Read the original article Hit count: 231

Filed under:
|
|
|

How do I print coloured characters to a Linux terminal that supports it? I'm using C++ for this program, but I think that might be irrelevant.

EDIT: And secondly, how do I tell if it supports colour codes?

© Stack Overflow or respective owner

Related posts about linux

Related posts about c++