[Qt-creator] Flushing application output automatically starts a new line in application output pane
Orgad Shaneh
orgads at gmail.com
Mon Dec 29 07:55:31 CET 2014
On Sun, Dec 28, 2014 at 8:09 PM, Xiaofeng Wu <djangowu at gmail.com> wrote:
> When I call fflush(stdout) or std::cout << std::flush, the application
> output pane automatically starts a new line.
> I am printing out the progress of my program on the same line with '\r',
> if I don't flush the output, the progress is not printed until it finishes.
> If I flush output, then application output pane just starts a new line
> making program print many lines of progress output.
>
> If I run my program in terminal, it does not have this problem, all the
> outputs are printed out on the same line.
>
> Is there an easy fix for this problem?
>
> Best,
>
> Xiaofeng Wu
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
Not easy either. OutputFormatter should be able to handle \r correctly, but
OutputWindow::appendMessage() adds \n to messages.
If you find a way to solve it, you're more than welcome to push your change
to gerrit and get it reviewed. I don't have time to work on that currently.
- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20141229/e73bca8c/attachment.html>
More information about the Qt-creator
mailing list