interworking issue with native Windows, depending on terminfo
Brian Inglis
Brian.Inglis@SystematicSW.ab.ca
Tue Oct 27 20:04:50 GMT 2026
On 2026-10-27 11:39, Brian Inglis wrote:
> On 2026-10-27 04:32, Thomas Wolff wrote:
>> Hi,
>> please see https://github.com/microsoft/WSL/issues/42032#issuecomment-6432254350
>> "cygwin is not providing the native process a proper console when the matching
>> terminfo is missing".
>>
>> If terminfo is not present (e.g. /usr/share/terminfo/78/xterm, or xterm-new,
>> or xterm-256color, whichever is set via $TERM), and you run wsl.exe, the WSL
>> shell will be in non-interactive/non-pty mode, not show a prompt, not handle
>> signals (so, e.g. ^C would exit WSL), etc.
>> One use case would be a standalone application with cygwin bundled but not
>> terminfo.
>> While a standalone package developer will notice this and eventually also
>> provide terminfo files, I don't see a logic connection that would make pty/
>> console or whatever is missing here depend on terminfo.
>
> Both wslbridge and mintty depend on cygwin dll which might make the console
> interface TERM dependent; why terminfo was made a Base package?
# hack to display context following TERM
$ grep -ao 'TERM.\{26\}' /bin/cygwin1.dll /bin/mintty | cat -A
/bin/cygwin1.dll:TERM=^@CYGWIN=^@=^@env var conver$
/bin/cygwin1.dll:TERMENULOOP^@WM_EXITMENULOOP^@WM$
/bin/cygwin1.dll:TERM^@Terminated^@SIGURG^@Urgent $
/bin/cygwin1.dll:TERM^@ConEmuHk64.dll^@GetProcAdd$
/bin/cygwin1.dll:TERM^@/usr/share/terminfo/%02x/$
/bin/cygwin1.dll:TERM^@URG^@STOP^@TSTP^@CONT^@CHLD^@C$
/bin/mintty:TERMCAP^@COLORFGBG^@COLORTERM^@DE$
/bin/mintty:TERM2_^@MC_^@PUTTY^@RXVT_^@URXVT_^@$
/bin/mintty:TERM_^@TERM_^@STY^@WINDOW^@TMUX^@TM$
/bin/mintty:TERM^@TERM_PROGRAM^@3.8.3^@TERM_P$
/bin/mintty:TERMINATED^@^[7^[[H^[[L^@^[8^[[B^@%s: $
/bin/mintty:TERM::HOSTLANG^@-wslbridge^@/bin$
/bin/mintty:TERM^@LC_CTYPE^@HOSTLANG^@WSLENV^@$
/bin/mintty:TERM::HOSTLANG^@--shell-type^@lo$
Cygwin looks for ConEmuHk64 DLL and formats terminfo path; but nothing obvious
in mintty other than to do with screen/tmux.
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut
-- Antoine de Saint-Exupéry
More information about the Cygwin-developers
mailing list