Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Qt Creator ANSI colors

    Tools
    2
    2
    1189
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      HeresJonny last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

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

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post