A bug, without fflush() !
Patrick Serru
patrik at serru.net
Thu Jul 17 13:45:58 CEST 2014
Le jeudi 17 juillet 2014, Marc Lehmann a écrit :
> On Wed, Jul 16, 2014 at 01:48:57PM -0500, Patrick Serru <patrik at serru.net>
wrote:
>> I would like to know how to use the display urxvt, or more precisely
>> when to use "fflush (stdout)." I understood that the display is updated
>> without
>
> You should consult an introductory text on your programming language
> (likely C) - it will tell you what fflush and printf do, and why (and
> when) you might need fflush. This has nothing to do with urxvt - urxvt
> always displays what is output as soon as possible.
-----------------------------
Hi Marc, hi All,
I did not read anything in my OpenSUSE distribution documentation related
to buffering and "line" buffering. But I found on Internet.
Thank you very much. The simplest way seems to be a simple "setbuf(stdout,
NULL);" ! I wrote a helping function using vprintf. This sould work a better
way.
So, the reason why the program stopped has nothing to see with fflush() !
Aïe, aïe, aïe!
Sincerly,
Patrick
More information about the rxvt-unicode
mailing list