fdopen / opam-repository-mingw

windows package repository for OPAM (mingw and msvc)
https://fdopen.github.io/opam-repository-mingw/
Creative Commons Zero v1.0 Universal
96 stars 33 forks source link

Quitting Ocaml makes the shell hangs #33

Closed anta40 closed 7 years ago

anta40 commented 7 years ago

I'm on Windows 10 32-bit, running the latest ocaml (4.04.0) After quitting the ocaml REPL (either by Ctrl-C or Ctrl-Z), the shell will hang orepl

If I'm not mistaken this doesn't occur in the previous version.

fdopen commented 7 years ago

Yes, I can reproduce it. But it also happens with older ocaml versions for me. It's probably a incompatibility between cygwin's tty emulation and the native ocaml toplevel that doesn't understand this emulation (I can't reproduce it with a native terminal like cmd.exe instead of mintty).

But there is a simple workaround: If you are using ocaml inside mintty or rxvt, just use rlwrap ocaml instead of ocaml.

anta40 commented 7 years ago

Seems that rlwrap ocaml does the trick. I think the issue can be closed, yes? :)