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] pipe communication with toplevel
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-08-06 (03:23)
From: Steve Harris <scharris@w...>
Subject: Re: [Caml-list] pipe communication with toplevel
On Monday, August 5, 2002, at 04:40  AM, Xavier Leroy wrote:

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

Good shot,  setting TERM to "none" for the toplevel child process fixed 
the problem.
Before, TERM had been unset, which was leading to the crashes (not sure 
if that's normal
or an OS X related bug).
Thanks for the advice.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: