Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36109

QProcess cannot write to xterm or any other terminal emulator in Ubuntu Linux 13.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.2.0
    • Core: Other
    • None
    • Ubuntu Linux 13.10

      I used a QProcess to launch xterm and try to get tty. And I used this:

      proc=new QProcess(this);
      QStringList args;
      proc->start("xterm", args, QIODevice::ReadWrite);
      proc->waitForStarted();
      qDebug()<<proc->write("tty\r\n");
      qDebug()<<QString(proc->readAllStandardOutput());

      But when it's running, it just launch a xterm without doing anything. But write() returns 5. I've e tried ubuntu terminal. It seems works the same as xterm. Other command line tools works well, like GDB or GCC. This must be a bug of QProcess. Or is there something I didn't notice?

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

            thiago Thiago Macieira
            saki Miyanaga Saki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes