Re: Capture console app output into texview?



Hi,

thanks again for that hint. Unfortunately adding 
         /* switch to line buffered mode */
        if(setvbuf(fh, NULL, _IOLBF, 0))
                perror("setvbuf(_IOLBF)");

to the program posted by Dov doesn't change anything.
Are there limitations on changing the buffer mode? E.g.
only the transmitter side can do that?

Till

Am Freitag 20 November 2009 schrieb David NeÄas:
Terminals are normaly line-buffered while pipes are block-buffered, see
setvbuf(3) for some info.  So the buffering behaviour differs depending
on where the output goes.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]