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
[Caml-list] How to read a password without displaying it?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-02-07 (14:54)
From: David MENTRE <david.mentre@w...>
Subject: Re: [Caml-list] How to read a password without displaying it?
David MENTRE <dmentre@linux-france.org> writes:

> I tried following trick, using '\b' on output. Strangely enough, the
> output_char have no effect, even if I do a flush. The '*' are printed
> *after* I do a <RETURN> on my terminal.  I don't understand this
> behavior. The flush should send the caracters to the terminal.

Oops, I remembered my old unix programming. The shell (or whatever in
front of the caml program) sends the whole line after <CR>. So my output
is done on the following line. (sight)


To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners