Qt Creator ANSI colors



  • The program I am writing outputs messages to STDOUT in color. This works great in the terminal, but I am seeing the actual ANSI codes in the Application Output window. For example:

    @[36mOpened database[0m@

    The \e shows up for me as the mathematical >= symbol. Could I have some font or locale setting that might be interfering with this working properly? From what I understand at https://codereview.qt-project.org/#/c/64183/ this should just work.

    I'd be fine giving up and checking "Run in Terminal", but that isn't an option when you are deploying and running remotely. (And no, the color issue isn't specific to running remotely, it doesn't work when I run locally either.)

    I'm running Qt Creator 3.2.2 on Arch, but I've noticed it on previous versions I used to run on Gentoo as well.


  • Lifetime Qt Champion

    Hi,

    You might have found a bug/misbehavior. You should consider preparing an example that shows that and open a new report.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.