Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29346

QtCreator terminal ignores HKEY_CURRENT_USER\Console\VirtualTerminalLevel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 11.0.0-rc1
    • Terminal
    • Windows 11
    • Windows

    Description

      ANSI color escape sequences are always parsed in the qtcreator terminal. On Windows, the ANSI sequences are only parsed by cmd.exe or PowerShell when the registry DWORD key HKEY_CURRENT_USER\Console\VirtualTerminalLevel is set to 1. An example application to produce a yellow colored output with ANSI color escape sequences is given below.

       

      #include <iostream>
      #include <string>int main(int argc, char *argv[])
      {
          std::cout << "\033[33mThis is yellow\033[0m" << std::endl;
          return 0;
      }
       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            madwinter Marcus Tillmanns
            wladimir.leuschner Wladimir Leuschner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes