From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 9974FBC75 for ; Thu, 24 Feb 2005 17:00:38 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j1OFwtfE007202 for ; Thu, 24 Feb 2005 17:00:38 +0100 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 QAA13040 for ; Thu, 24 Feb 2005 16:58:54 +0100 (MET) Received: from slinky.cs.nyu.edu (SLINKY.CS.NYU.EDU [128.122.20.14]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j1OFvxEe006873 for ; Thu, 24 Feb 2005 16:58:54 +0100 Received: from localhost (localhost [127.0.0.1]) by slinky.cs.nyu.edu (8.12.10+Sun/8.12.10) with ESMTP id j1OFvwW3009102; Thu, 24 Feb 2005 10:57:58 -0500 (EST) Date: Thu, 24 Feb 2005 10:57:58 -0500 (EST) From: Igor Pechtchanski Reply-To: caml-list@inria.fr To: "=?iso-8859-1?Q?matthieu.dubuget@libertysurf.fr?=" Cc: caml-list@inria.fr Subject: Re: [Caml-list] =?iso-8859-1?Q?tuareg,_windows,_cygwin_and_startxwin.bat?= In-Reply-To: Message-ID: References: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam: no; 0.00; caml-list:01 tuareg:01 matthieu:01 dubuget:01 wrote:01 ocaml:01 emacs:01 toplevel:01 emacs:01 toplevel:01 toplevels:01 buffer:01 matthieu:01 o'caml:01 o'caml:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.5 required=5.0 tests=TO_ADDRESS_EQ_REAL autolearn=disabled version=3.0.2 X-Spam-Level: On Thu, 24 Feb 2005, matthieu.dubuget wrote: > Hello. > > I use Ocaml (MSVC version) on windows XP Pro. > I experienced a strange behaviour of tuareg's > tuareg-run-ocaml command, depending on the way I call cygwin > and emacs. If anybody knows the reason of this behaviour, I > would be interested for an explanation. > > When I call a toplevel this way, everything works ok : > - run cygwin > - startx > - run emacs from xterm > - launch toplevel with the tuareg-run-caml command > > When I work this way (I prefer this way, because it is > simpler, and do not leave an unused opened cygwin terminal): > - run xwindows directly with startxwin.bat script > - run emacs from xterm > - launch toplevel with the tuareg-run-caml command > > -> the toplevels runs in a separate windows which is > annoying, because I then lack the power of emacs... > > - If I launch a customized toplevel of mine, it runs as > usual inside the *caml-toplevel* buffer > > Any idea ? Matthieu, Cygwin uses something called "ptys", which are pseudo-terminals implemented with pipes. Some Windows applications don't understand those, so think they're running without a console, and allocate their own. There was some work on fixing this -- see the Cygwin mailing list archives for details, but I don't think there's a definitive resolution. You most likely run Cygwin's emacs, which creates ptys. You could try using non-Cygwin xemacs (I don't know if it speaks X -- I don't use emacs). That said, why not use the Cygwin version of O'Caml that does understand ptys? Igor Pechtchanski, the volunteer O'Caml maintainer for Cygwin -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT