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

QProcess support for giving subprocess a tty

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      None
    • Environment:

      At least Linux and Unix-like tools in Windows.

      Description

      Currently any process run with QProcess detects it is not running in a terminal. This results in the process buffering it's output so, that it's not flushed even on newline output. Often QProcess is used to run a tool like tar, where it would be very desirable to have it flush after every line, so progress can be shown to user.

      There seems to be no way to make QProcess run the subprocess with a terminal. For example in Linux, I think the terminal needs to be set up after fork, but before doing exec for the new process.

      To be clear: I don't mean running the process in an actual terminal window, just that the process will detect it's running in terminal, and flush stdout and stderr accordingly.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              ari.hyttinen Ari Hyttinen
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes