Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
Qt Creator 13.0.0
-
None
-
-
05e052901 (15.0)
Description
Output to std::cout is not flushed correctly when using the built-in terminal. See attached example of a simple helloworld.
Using std::endl or std::flush does NOT solve the problem. The process either has to waste some time (using _sleep() or calling system()) or getting some input from the user (e.g. by using getchar()).
The behaviour is inconsistent. Sometimes, "Hello, world!" is printed after informing about the return value of the process, sometimes the terminal is cleared and only the "Hello, world!" remains.
As far as I can tell, the behaviour was correct in QtCreator 12 and is correct on macOS QtCreator 13.
Best regards,
Herwig
Attachments
For Gerrit Dashboard: QTCREATORBUG-30733 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
605279,3 | Terminal: Fix flushing after process has finished | 15.0 | qt-creator/qt-creator | Status: MERGED | +2 | +1 |