all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: read-key-sequence(-vector) on Shift left/right gives[left]/[right], not [S-left]/[S-right]
Date: Thu, 09 Sep 2004 14:54:59 +0200	[thread overview]
Message-ID: <86u0u7bo0s.fsf@ketchup.de.uu.net> (raw)
In-Reply-To: OFD5FECD30.2B86D439-ON85256F0A.003DFBBB@irm.r9.fws.gov

Charles_Davis@fws.gov writes:

> Kai Grossjohann wrote:
>> 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.
>
> I have tried changing the terminal type from the default "cygwin" by
> doing [...]  for 10-15 different terminal types.  [...]
>
> Can you suggest a terminal type for which these modifiers should work?

I'm sorry, I think I neglected to say one important bit of
information:

No terminal I know of comes preconfigured to support C- and S- for
function keys.

And by "configuring" the terminal I meant to use the built-in
configuration mechanism for the terminal in question so that it
changes its behavior.  For example, for the GNU/Linux console you can
define keymaps and load them with "loadkeys".  (There are predefined
maps "emacs" and "emacs2", perhaps one of them supports more modifiers
on function keys.)  As another example, the X11 program xterm can also
be configured through X resources to send different escape sequences.

But you're using Cygwin.  I think Cygwin normally comes with a version
of rxvt and invokes that for the bash.  I don't know whether rxvt can
be configured in the manner I described.  I also think that the Cygwin
bash can be invoked from within the normal command prompt window, but
I have no idea how to configure that program's keymap.

Sorry about the bad news,
Kai

  reply	other threads:[~2004-09-09 12:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-09 11:39 read-key-sequence(-vector) on Shift left/right gives[left]/[right], not [S-left]/[S-right] Charles_Davis
2004-09-09 12:54 ` Kai Grossjohann [this message]
     [not found] ` <mailman.2142.1094734877.1998.help-gnu-emacs@gnu.org>
2004-09-09 18:43   ` Thomas Dickey
2004-09-26 11:51     ` Kai Grossjohann
     [not found] <mailman.1987.1094660096.1998.help-gnu-emacs@gnu.org>
2004-09-08 20:38 ` Alan Mackenzie
2004-09-09  3:02 ` Luc Teirlinck
  -- strict thread matches above, loose matches on Subject: below --
2004-09-08 16:08 Charles_Davis
2004-09-09  8:34 ` Kai Grossjohann
     [not found] <mailman.1740.1094515688.1998.help-gnu-emacs@gnu.org>
2004-09-07  1:21 ` read-key-sequence(-vector) on Shift left/right gives [left]/[right], not [S-left]/[S-right] ? Katsumi Yamaoka
2004-09-07  0:02 Drew Adams
2004-09-07 11:55 ` Kai Grossjohann
2004-09-07 14:32   ` read-key-sequence(-vector) on Shift left/right gives[left]/[right], " Drew Adams
2004-09-07 14:47     ` Stefan
2004-09-07 15:47       ` Drew Adams
2004-09-08  0:22     ` Richard Stallman
2004-09-08  0:47       ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86u0u7bo0s.fsf@ketchup.de.uu.net \
    --to=kai@emptydomain.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.