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

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

Re: getting <C-LEFT>, <C-RIGHT>, etc. to work in GNU Emacs under cygwin


From: Stefan Monnier
Subject: Re: getting <C-LEFT>, <C-RIGHT>, etc. to work in GNU Emacs under cygwin
Date: Thu, 09 Sep 2004 18:44:11 GMT
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

>     I am running GNU Emacs 21.2 under a cygwin BASH shell on an XP-2003
>     system.  I would like to use my control key with the arrow keys on the
>     "inverted T on my keyboard.  Unfortunately, Emacs does not seem to
>     notice when the the control modifier is used with these keys.
>     The same is true when the control modifier is used with keys on the
>     "6-pack."

Most likely the problem is that Emacs is not being told.

The terminal emulator under which you run Emacs has to turn function keys and
cursor-movement keys into "escape sequences" of ascii chars.  Most of the
terminal emulators do that fine for non-control'ed and non-shift'ed uses,
but they often use the same escape sequence when the control or shift key
is held, thus losing this pecious information.  Emacs has no way to figure
out that the control key was held in such cases.

You first need to convince your terminal emulator to preserve the
information by using distinct escape sequences depending on the
modifier-keys pressed in conjunction with the function keys.
How to do that is specific to each terminal emulator.


        Stefan

reply via email to

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