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 LAA16887; Mon, 5 Aug 2002 11:40:55 +0200 (MET DST) 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 LAA16914 for ; Mon, 5 Aug 2002 11:40:54 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g759eqD16543; Mon, 5 Aug 2002 11:40:52 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA16963; Mon, 5 Aug 2002 11:40:51 +0200 (MET DST) Date: Mon, 5 Aug 2002 11:40:51 +0200 From: Xavier Leroy To: Steve Harris Cc: caml-list@inria.fr Subject: Re: [Caml-list] pipe communication with toplevel Message-ID: <20020805114051.A16714@pauillac.inria.fr> References: <66CAE6AE-A768-11D6-A36A-003065A79338@worldnet.att.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <66CAE6AE-A768-11D6-A36A-003065A79338@worldnet.att.net>; from scharris@worldnet.att.net on Sun, Aug 04, 2002 at 12:09:49AM -0500 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I'm doing a graphical ocaml toplevel wrapper for OS X, it's working > except when I type in bad syntax, > then the ocaml toplevel background process that I'm communicating with > quits or dies, I don't know why. I've got the toplevel's standard > in,out, and error redirected to pipes that the graphical shell is using > for communication with it. The session is fine until bad input is > finally typed. Any ideas about why it quits like that? > Is it checking isatty() or similar on stdin and deciding there's no > human so better to just quit upon error? There is no such checking in the Caml code for the toplevel. However, the toplevel calls termcap or terminfo functions to try and underline graphically the error. Maybe these functions have a bug? Try setting the TERM variable to "dumb" or "none" before starting the toplevel, e.g. launch it with /bin/sh -c "TERM=dumb ocaml" - Xavier Leroy ------------------- 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