Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 <> 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 Archives:
Bug reports: FAQ:
Beginner's list: