Browse thread
tuareg,_windows,_cygwin_and_startxwin.bat
-
matthieu.dubuget@libertysurf.fr
- Igor Pechtchanski
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Igor Pechtchanski <pechtcha@c...> |
| Subject: | Re: [Caml-list] tuareg,_windows,_cygwin_and_startxwin.bat |
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