From: torys.anderson@gmail.com (Tory S. Anderson)
To: Andrey Lisin <alisin@crystalnix.com>,
Emacs Help List <help-gnu-emacs@gnu.org>
Subject: Re: How get escape sequence generated by keyboard shortcut in Emacs?
Date: Sat, 28 Feb 2015 11:28:53 -0500 [thread overview]
Message-ID: <87d24uuhiy.fsf@gmail.com> (raw)
In-Reply-To: <EC3D20A4-BC2D-4616-B59F-41CDB641FC2A@gmail.com> (Andrey Lisin's message of "Sat, 28 Feb 2015 22:14:40 +0600")
Ah; in that case, I'm not sure you can do it. I think that such low-level information probably doesn't make it to emacs; it's interpreted by the OS first. Maybe someone can correct me if I'm wrong. "Shortcuts" like <backspace> seem to be as low-level as emacs gets.
Andrey Lisin <alisin@crystalnix.com> writes:
> Hi,
>
> I’m afraid, I haven’t explained clearly. Let me provide a simple
> example. I use iTerm2 as my terminal emulator. And, for example, it
> generates ^[[1;2C for Shift+left arrow shortcut. My question is there
> a way to display this ‘^[[1;2C’ when I press Shift-left arrow inside
> Emacs? Probably, there are some specific mode.
>
> --
> Regards,
> Andrey Lisin
>
>
>
>
>
>
> On 28 Feb 2015, at 22:02, Tory S. Anderson <
> torys.anderson@gmail.com> wrote:
>
> I'm not sure I completely understand your meanings for "escape
> sequences" and "keyboard shortcut", but you may find what your
> looking for in either `command-history`, `C-h k` followed by your
> keystroke, or `C-h l` to see history of your command. Are any of
> those what you're looking for?
>
> 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.
>
> Thank you!
>
next prev parent reply other threads:[~2015-02-28 16:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-28 15:33 How get escape sequence generated by keyboard shortcut in Emacs? 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 [this message]
[not found] <mailman.1011.1425137633.31049.help-gnu-emacs@gnu.org>
2015-02-28 17:25 ` Dan Espen
2015-02-28 17:45 ` Robert Thorpe
2015-02-28 17:51 ` Javier
2015-02-28 18:05 ` Andrey Lisin
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d24uuhiy.fsf@gmail.com \
--to=torys.anderson@gmail.com \
--cc=alisin@crystalnix.com \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).