help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: read-key-sequence(-vector) on Shift left/right gives[left]/[right],


From: Kai Grossjohann
Subject: Re: read-key-sequence(-vector) on Shift left/right gives[left]/[right], not [S-left]/[S-right]
Date: Thu, 09 Sep 2004 10:34:44 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Charles_Davis@fws.gov writes:

> I cannot seem to get Emacs to recognize either the control or shift
> modifiers for any of the arrow or 6-pack keys.  Only the meta-key modifier
> seems to be recognized.  Is there some variable I need to set to make the
> use of control and shift modifiers of these keys possible?

When you use a terminal, it sends escape sequences to the application
when you hit the cursor keys.  Many terminals send the same escape
sequence for, say, <left> and C-<left> and S-<left>.  So the
application (Emacs in this case) cannot distinguish them.

These days, terminals can be configured to send different escape
sequences for these cases.  Then you need to teach Emacs which escape
sequence stands for which keypress, and then you can bind these
keypresses normally.

Kai




reply via email to

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