Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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)

Yours,
d.
-- 
 david.mentre@wanadoo.fr

-------------------
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