|
From: Eli Z. <el...@gn...> - 2015-01-01 15:57:32
|
When a MinGW program linked with libncurses is run from the MSYS Bash,
it sees TERM=cygwin in the environment, and libncurses then uses the
terminfo data for that terminal, instead of using its internal Windows
console driver. However, using the cygwin terminfo entry doesn't work
well: e.g., the "clear to end of line" sequence ("\E[K" according to
"infocmp cygwin") appears verbatim instead of actually erasing text.
I'm guessing that this doesn't work because the necessary magic for
interpreting these sequences is inside the MSYS DLL, and so won't work
in any non-MSYS program. Is that correct?
If so, then it is not really appropriate for MSYS to leave this
variable in the environment, when it invokes native programs, I think.
(There's a work-around of using "env -u", but it's an annoyance to
remember to type that, and when MinGW programs are invoked via shell
scripts that also invoke MSYS programs, the annoyance becomes real
trouble.)
Or am I missing something?
TIA
|