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 SAA10760; Thu, 21 Aug 2003 18:12:24 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA14568 for ; Thu, 21 Aug 2003 18:12:22 +0200 (MET DST) Received: from jamlikhet.polytechnique.org (b.mx.polytechnique.org [129.104.30.35]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h7LGCMT16127 for ; Thu, 21 Aug 2003 18:12:22 +0200 (MET DST) Received: from alan-schm1p.inria.fr (DHCP12-10.CIS.UPENN.EDU [158.130.13.30]) by ssl.polytechnique.org (Postfix) with ESMTP id 6284DC539 for ; Thu, 21 Aug 2003 18:12:21 +0200 (CEST) Received: by alan-schm1p.inria.fr (Postfix, from userid 501) id 0DC9245F5; Thu, 21 Aug 2003 12:11:57 -0400 (EDT) Date: Thu, 21 Aug 2003 12:11:57 -0400 From: Alan Schmitt To: caml-list@inria.fr Subject: [Caml-list] unbuffered input Message-ID: <20030821161157.GH18587@alan-schm1p> Mail-Followup-To: caml-list@inria.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: Vim http://vim.sf.net/ X-Info: http://pauillac.inria.fr/~aschmitt/ X-Operating-System: Linux/2.4.21-6mdk (i686) X-Uptime: 12:08:07 up 1 day, 7:53, 7 users, load average: 0.01, 0.05, 0.07 User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; char:01 char:01 buffering:01 libc:01 caml:01 caml:01 unix:02 unix:02 hint:04 i've:09 something:09 seem:10 terminal:11 schmitt:13 schmitt:13 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I've been looking at this for about one hour, and I seem to get stuck: how can I do unbuffered input in caml ? I want a program to block until a char is entered. I tried input_char and Unix.read (without and with Unix.select), to no avail. I do not know if it is caml, the libc, or the terminal that is buffering. Any hint on how to do this ? Thanks a lot, Alan Schmitt -- The hacker: someone who figured things out and made something cool happen. ------------------- 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