kcan=^C in putty terminfo entry considered harmful

View: New views
2 Messages — Rating Filter:   Alert me  

kcan=^C in putty terminfo entry considered harmful

by Sven Joachim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The terminfo entry for putty defines kcan=^C, which unfortunately breaks
Emacs rather badly.  Upon pressing C-h C-c, Emacs tells me

<cancel> (translated from C-c) is undefined

With Ctrl-C being non-functional, Emacs is next to unusable. :-(
What is the reason for the kcan=^C definition?

Sven


_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@...
http://lists.gnu.org/mailman/listinfo/bug-ncurses

Re: kcan=^C in putty terminfo entry considered harmful

by Thomas Dickey-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 1 Oct 2009, Sven Joachim wrote:

> The terminfo entry for putty defines kcan=^C, which unfortunately breaks
> Emacs rather badly.  Upon pressing C-h C-c, Emacs tells me
>
> <cancel> (translated from C-c) is undefined
>
> With Ctrl-C being non-functional, Emacs is next to unusable. :-(
> What is the reason for the kcan=^C definition?

I didn't notice that - it was in the (fairly large) change by
Robert de Bath in 2004-08-07

On some older Unix systems, it was not uncommon to see bindings which
equated to control keys in stty, e.g.,  '^\'.  That sort of
reasoning may have been the origin of this detail.  Or perhaps just
completness.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@...
http://lists.gnu.org/mailman/listinfo/bug-ncurses