Version française
Home     About     Download     Resources     Contact us    
Browse thread
Corrupt output of printf
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] (Not) corrupt output of printf
On Fri, Jan 23, 2009 at 11:20:35AM +0000, Dawid Toton wrote:
> This was actually a bug in GNOME Terminal... sorry for the noise.

Weird ... I was going to suggeest it was because you weren't flushing
the output after each print statement.  I usually do:

  printf "something\n%!"

(the %! forces a flush of the output channel).

Rich.

-- 
Richard Jones
Red Hat