PtyProcess superflous linebreaks

Hans Meine hans_meine at
Wed Nov 21 12:18:40 GMT 2007

Am Dienstag, 20. November 2007 17:57:55 schrieb Thiago Macieira:
> Suggestion: make readLine return either a full line, with the line-ending
> stripped, or nothing at all. If it can't read a full line, then there was
> no line to be read and, therefore, readLine can't return anything.
> The consequence of this is that nothing is shown until a full line is
> output. If this isn't desired, the code shouldn't be using readLine().
> Also note that the process can exit without outputting a newline, so when
> it finishes, the code has to read without using readLine.

AFAICS, not stripping the newline would make most sense.  Think of progress 
outputs of backend programs, which usually are not terminated with a newline.  
(E.g. mplayer, cdrecord, ...)

I agree with Oswald here.

Ciao, /  /
    /  / ANS

More information about the kde-core-devel mailing list