There is an weird interworking issue when launching WSL from a minimal standalone installation of cygwin.
(It can be reproced with a full installation, though, see below).
When calling Windows-native wsl.exe, as implicitly done via mintty --WSL, and there is no terminfo database installed, something fails about pty setup, and the WSL shell will be run in pty-less mode (no prompt, no stty signal handling, ^C terminates the shell). When terminfo is present, everything works as expected.
Test case:
remove /usr/share/terminfo/78/$TERM (xterm or xterm-256color, or the whole subdirectory, or the 6d or 76 subdirectories when using TERM=mintty* or vt settings), i.e. move it to some saving place.
Run mintty --WSL, observe the issue described above.
Interestingly, cygwin shells are not affected by the issue, so some obscure interworking of the dreadful Windows ConPTY layer or so might contribute to the issue, but in any case I doubt that the presence of terminfo should affect the effective pty behaviour.
Thomas

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to