[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tlf-devel] Improved keyboard handling
From: |
Nate Bargmann |
Subject: |
Re: [Tlf-devel] Improved keyboard handling |
Date: |
Tue, 5 Jan 2016 11:29:26 -0600 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
* On 2016 05 Jan 10:39 -0600, Thomas Beierlein wrote:
> Here just a test with your program for the PgUp and PgDn on three
> terminals:
>
>
> xfce terminal xterm rxvt
> Ctrl-PgUp -- 550 kPRV5 530 kPRV5
> Ctrl-PgDn -- 545 kNXT5 528 kNXT5
> Alt-PgUp 548 kPRV3 548 kPRV5 338 KEY_NPAGE
> Alt-PgDn 543 kNXT3 543 kNXT5 339 KEY_PPAGE
Ahh, RXVT, I recall why I dumped it years ago. ;-)
> By the way there is a very easy way to check the plain keycodes from a
> terminal. Just type
>
> $ cat<enter>
>
> and then you will get all key sequences for any key you press (minus
> the ones that your terminal strips out - e.g. for Ctrl-PgUp/PgDn in
> xfce terminal).
I was never very good at interpreting line noise. ;-)
^[[5;5~^[[6;5~^C
That's Ctl-PgUp Ctl-PgDn Ctl-C.
Which is why discovering 'showkey -a' was so helpful to me:
^[[5;5~ 27 0033 0x1b
91 0133 0x5b
53 0065 0x35
59 0073 0x3b
53 0065 0x35
126 0176 0x7e
^[[6;5~ 27 0033 0x1b
91 0133 0x5b
54 0066 0x36
59 0073 0x3b
53 0065 0x35
126 0176 0x7e
The numeric values are very easy to test in C code and the same
character representation is given.
I also have Qterm installed and it seems to follow the other desktop
terminals for key codes. So far Gnome Terminal as found in Debian
Jessie may be my choice of terminal since the shortcuts can be easily
disabled. Now if I can convince it to start on X Display 1 instead of 0
I'll be happy.
73, Nate
--
"The optimist proclaims that we live in the best of all
possible worlds. The pessimist fears this is true."
Ham radio, Linux, bikes, and more: http://www.n0nb.us
- [Tlf-devel] Improved keyboard handling, Nate Bargmann, 2016/01/03
- Re: [Tlf-devel] Improved keyboard handling, Ervin Hegedüs, 2016/01/04
- Re: [Tlf-devel] Improved keyboard handling, Nate Bargmann, 2016/01/04
- Re: [Tlf-devel] Improved keyboard handling, Thomas Beierlein, 2016/01/04
- Re: [Tlf-devel] Improved keyboard handling, Nate Bargmann, 2016/01/04
- Re: [Tlf-devel] Improved keyboard handling, Thomas Beierlein, 2016/01/05
- Re: [Tlf-devel] Improved keyboard handling, Nate Bargmann, 2016/01/05
- Re: [Tlf-devel] Improved keyboard handling, Nate Bargmann, 2016/01/05
- Re: [Tlf-devel] Improved keyboard handling, Thomas Beierlein, 2016/01/05
- Re: [Tlf-devel] Improved keyboard handling,
Nate Bargmann <=
- Re: [Tlf-devel] Improved keyboard handling, Pierre Fogal, 2016/01/04
- Re: [Tlf-devel] Improved keyboard handling, Nate Bargmann, 2016/01/04
Re: [Tlf-devel] Improved keyboard handling, Ervin Hegedüs, 2016/01/04
Re: [Tlf-devel] Improved keyboard handling, David Quental, 2016/01/04