cygwin 3.1 pseudo console in PTY and break/ctrl-c handling

Thomas Wolff towo@towo.net
Tue Feb 18 22:54:00 GMT 2020


Am 18.02.2020 um 22:16 schrieb Kevin Schnitzius via cygwin:
> With Cygwin version 3.0.7-1, crtl-c kills native apps that are started from the shell,  For example, starting notepad in the foreground from bash would be kill by a ctrl-c.
>
> With Cygwin version 3.1.2-1, crtl-c DOES NOT kill native apps that are started from the shell,
>
> Can I restore this behavior?
>
> With 3.1.2-1:
>
> mintty -o "CA+F12:break"               =====>    ctrl-alt-F12 causes a break and kills notepad
> mintty -o "c:break"                    =====>    ctrl-shift-c causes a break and kills notepad
> mintty -o "C+c:break"                  =====>  FAIL -- ctrl-c kills native apps but notepad is not affected
> mintty -o "CA+c:break"                 =====>  FAIL -- ctrl-alt-c kills native apps but notepad is not affected
This would be mintty -o KeyFunctions='CA+F12:break' etc.
The latter two are not valid mintty configuration; Ctrl is only 
supported as a modifier for function keys and special keys, not letters. 
This is unchanged with the cygwin version.

> These tests show that the 'break' signal can be propagated from mintty but is not for the ctrl-c case.
>
> I am guessing that this behavior is from the pty handing but I have not dug into this code or installed winpty.
>
> Is all this documented somewhere that I could not find?
>
> Kevin
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>


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



More information about the Cygwin mailing list