emacs-devel
[Top][All Lists]
Advanced

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

Re: xterm [menu] key definition


From: Ergus
Subject: Re: xterm [menu] key definition
Date: Tue, 24 Aug 2021 11:17:41 +0200

On Tue, Aug 24, 2021 at 10:34:33AM +0200, tomas@tuxteam.de wrote:
On Tue, Aug 24, 2021 at 10:19:06AM +0200, Ergus wrote:
On Tue, Aug 24, 2021 at 09:37:23AM +0300, Juri Linkov wrote:
>* Gregor Zattler <telegraph@gmx.net> [2021-08-23; 20:35]:
>>>I don't actually know about any keyboard with a print
>>>button...
>>
>>wouldn't that be the PrtSc key which is on every standard PC
>>keyboard right of F12 and above of Insert?
>>
>>>But I suppose there should be some. If someone has it;
>>>please could you check with xev and cat+xterm what it
>>>sends?
>>
>>Said key gives via cat on xterm:
>>
>>^[[2~
>>
>>and xev says the same.
>>
>>on debian buster, that is.
>
>I have the PrtSc key that prints the screen,
>but no Menu key, so can't confirm, sorry.
>
I don't think there is a [print] key anymore anywhere... "PrtSc" is
something else and in general never should reach emacs because it is
intended to take screenshots; so the desktop or window manager should
intercept it before.

It's a key as any other key too. For those using refurbished hardware
it's not as uncommon as you might think.

I remap it to whatever seems useful (but then, I remap also caps lock,
because I deem it useless, so I'm weird ;-)

Cheers
- t

Then if you have it, could you tell what escape sequence it sends throw
Xterm by default? If you could do the same with urxvt will be very nice
;)

So we could rebind "\e[29~" to [menu] as it should; and whatever
sequence Print sends to [print].

Someone mentioned that PrtSc sends "\e[2~" is it different from the
sequence sent by your Print key?

Thanks in advance,
Ergus.


reply via email to

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