From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA18028; Sat, 7 Feb 2004 15:54:17 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA18095 for ; Sat, 7 Feb 2004 15:54:16 +0100 (MET) Received: from mwinf0903.wanadoo.fr (smtp9.wanadoo.fr [193.252.22.22]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id i17EsFf18959 for ; Sat, 7 Feb 2004 15:54:16 +0100 (MET) Received: from morgana (ARennes-303-1-17-244.w81-51.abo.wanadoo.fr [81.51.43.244]) by mwinf0903.wanadoo.fr (SMTP Server) with ESMTP id B5A501800197; Sat, 7 Feb 2004 15:54:15 +0100 (CET) Received: from david by morgana with local (Exim 4.30) id 1ApTqX-00016O-On; Sat, 07 Feb 2004 15:54:13 +0100 To: Basile STARYNKEVITCH Cc: caml-list@inria.fr Subject: Re: [Caml-list] How to read a password without displaying it? References: <87u123rqyn.fsf@linux-france.org> <20040207131730.GA20547@ours.starynkevitch.net> <87d68rrlrc.fsf@linux-france.org> From: David MENTRE Organization: none Date: Sat, 07 Feb 2004 15:54:13 +0100 In-Reply-To: <87d68rrlrc.fsf@linux-france.org> (David MENTRE's message of "Sat, 07 Feb 2004 15:45:43 +0100") Message-ID: <878yjfrld6.fsf@wanadoo.fr> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 dmentre:01 strangely:01 char:01 caml:01 flush:01 flush:01 writes:01 mentre:01 mentre:01 unix:02 behavior:03 trick:03 output:05 output:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 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 . 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