I am using cygwin 1.77 on windows vista.
I\'m facing problems with the output from sbt
in the shell.
Some relevant environment vars:
TERM=cygwin
Regarding 1):
The way the Cygwin console works is that there's a part of the Cygwin DLL that maps Unix terminal control sequences to Windows console API calls. Since that terminal emulation is part of the Cygwin DLL, it is not available to non-Cygwin programs such as the Java runtime. Instead, java
will be talking directly to the Windows console, which doesn't understand escape sequences. Hence they appear directly on screen.
There are a few ways you could address this:
-Djline.terminal=jline.UnixTerminal
option would do that.CYGWIN=tty
option. With that, programs invoked in the Cygwin console have their I/O connected to a "pseudo terminal" (pty) device instead of being connected directly to the console window. This makes the terminal emulation features available to non-Cygwin programs, but it means that programs that use the Windows console API will no longer work correctly.(Btw, the CYGWIN=server
option is obsolete; the feature that it enabled is always on anyway.)