all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: help-gnu-emacs@gnu.org
Cc: Dan Espen <despen@verizon.net>, Andrey Lisin <andrey.lisin@gmail.com>
Subject: Re: How get escape sequence generated by keyboard shortcut in Emacs?
Date: Sat, 28 Feb 2015 17:45:01 +0000	[thread overview]
Message-ID: <87385qaq1u.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <mcstk8$ki$1@dont-email.me> (message from Dan Espen on Sat, 28 Feb 2015 12:25:06 -0500)

Dan Espen <despen@verizon.net> writes:

> Andrey Lisin <andrey.lisin@gmail.com> writes:
>
>> Hi,
>>
>> sometimes it's necessary to know what sequence generates particular
>> keyboard shortcut. In my case, for instance, I need to know, what escape
>> sequences is generated by Shift+arrow shortcut. Of course, I can look in
>> terminal emulator settings, but I wish there would be a way to make
>> Emacs show sequences it receives.
>
> Try ^h k
>
> then hit shift arrow.
>
> In an rxvt, I just see <shift>.

That's right C-h k shows the key you press.  If it's bound then it pops
up a help buffer with the key in it and a description of what it does.
If it's unbound then it shows the key in the echo area and says
something like "C-' is undefined".

Using a terminal emulator window limits the number of keys you can use.
The keys you press are translated by the terminal emulator into the form
that actual terminals emitted, Emacs recieves the result of that.  For
example, in a terminal C-m and <return> are the same.  In GUI Emacs you
can remap them to different things, but in terminal Emacs both will
always do whatever C-m does.

BR,
Robert Thorpe



  reply	other threads:[~2015-02-28 17:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1011.1425137633.31049.help-gnu-emacs@gnu.org>
2015-02-28 17:25 ` How get escape sequence generated by keyboard shortcut in Emacs? Dan Espen
2015-02-28 17:45   ` Robert Thorpe [this message]
2015-02-28 17:51 ` Javier
2015-02-28 18:05   ` Andrey Lisin
2015-02-28 15:33 Andrey Lisin
     [not found] ` <87ioemuirj.fsf@gmail.com>
     [not found]   ` <EC3D20A4-BC2D-4616-B59F-41CDB641FC2A@gmail.com>
2015-02-28 16:28     ` Tory S. Anderson

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=87385qaq1u.fsf@robertthorpeconsulting.com \
    --to=rt@robertthorpeconsulting.com \
    --cc=andrey.lisin@gmail.com \
    --cc=despen@verizon.net \
    --cc=help-gnu-emacs@gnu.org \
    /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.