[Qt-creator] About ANSI color support for Qt-creator output panel

Petar Perisin petar.perisin at gmail.com
Sat Dec 27 15:14:41 CET 2014


Hi,

I haven't tried, but try to double the backslash:

std::cout << “\\e[38;5;82mHello \\e[38;5;198mWorld” << std::endl;

also, you might need to end colors somewhere.

Regards,
Petar

On Sat, Dec 27, 2014 at 3:34 AM, Xiaofeng Wu <djangowu at gmail.com> wrote:

> In the change log of Qt Creator 3.3.0, it says the application output
> panel support ansi color.
> But when I try to print colored texts like
>
> std::cout << “\e[38;5;82mHello \e[38;5;198mWorld” << std::endl;
>
> What I can see from the application output panel is the verbatim output of
> the string, instead of colored text of “Hello Wolrd”
>
> Am I using it in the wrong way?
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20141227/49a3db62/attachment.html>


More information about the Qt-creator mailing list