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

QTCreator 17 run terminal cannot handle key input at Linux anymore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 17.0.0
    • Terminal
    • None
    • Debian GNU/Linux 11 (bullseye) gnome 3.38.5 /wayland
    • Linux/Wayland
    • Linux/Wayland

    Description

      It seems that the terminal as indicated at projects->run->Run is not a full interactive terminal anymore. (Linux only)

      Eg isatty(STDIN_FILENO))  returns false. Eg a canonical getch() like function like:

      int getch()
      {
          struct termios oldt, newt;
          tcgetattr( STDIN_FILENO, &oldt );
          newt          = oldt;
          newt.c_lflag &= ~ ICANON;           // not buffered
          newt.c_lflag &= ~ ECHO ;            // no echo
          tcsetattr( STDIN_FILENO, TCSANOW, &newt );      // set
          int ch            = getchar();
          tcsetattr( STDIN_FILENO, TCSANOW, &oldt );      // restore
          return ch;
      }

       

      Does not work anymore and always immediately returns -1. Worked fine with QtCreators before 17.0

      Attachments

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

        Activity

          People

            madwinter Marcus Tillmanns
            oxydaan Daan Scherft
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes