[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How get escape sequence generated by keyboard shortcut in Emacs?
From: |
Tory S. Anderson |
Subject: |
Re: How get escape sequence generated by keyboard shortcut in Emacs? |
Date: |
Sat, 28 Feb 2015 11:28:53 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
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!
>