English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2009-01-23 (13:16)
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).


Richard Jones
Red Hat