bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forms and catching keys


From: John P. Hartmann
Subject: Re: Forms and catching keys
Date: Mon, 25 Oct 2010 07:54:05 +0200

On 24 October 2010 19:22, Dulek <address@hidden> wrote:
> Another problem is with catching Ctrl+Home and Ctrl+End keys. Keycodes for
> Home and for Ctrl+Home are the same. I have no idea how to make a workaround
> for this issue.

ncurses define no key_x macro for ctl+anything, so you're on your own.
 On my combination of xorg, xterm, and ncurses, ctl-home sends 01022
(x'212); ctl-end sends 01015 (x'20d').  You'll have to discover
whatever escape sequence is generated by the hardware and set up your
a termcap mapping to suit your taste.  Highly non-portable, of course.

  j.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]