* Re: How get escape sequence generated by keyboard shortcut in Emacs? [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 1 sibling, 1 reply; 6+ messages in thread From: Dan Espen @ 2015-02-28 17:25 UTC (permalink / raw) To: help-gnu-emacs 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>. -- Dan Espen ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How get escape sequence generated by keyboard shortcut in Emacs? 2015-02-28 17:25 ` How get escape sequence generated by keyboard shortcut in Emacs? Dan Espen @ 2015-02-28 17:45 ` Robert Thorpe 0 siblings, 0 replies; 6+ messages in thread From: Robert Thorpe @ 2015-02-28 17:45 UTC (permalink / raw) To: help-gnu-emacs; +Cc: Dan Espen, Andrey Lisin 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How get escape sequence generated by keyboard shortcut in Emacs? [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:51 ` Javier 2015-02-28 18:05 ` Andrey Lisin 1 sibling, 1 reply; 6+ messages in thread From: Javier @ 2015-02-28 17:51 UTC (permalink / raw) To: help-gnu-emacs C-h l runs the command view-lossage. It is bound to C-h l, <f1> l, <help> l. (view-lossage) Display last 300 input keystrokes. Andrey Lisin <andrey.lisin@gmail.com> wrote: > 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! > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How get escape sequence generated by keyboard shortcut in Emacs? 2015-02-28 17:51 ` Javier @ 2015-02-28 18:05 ` Andrey Lisin 0 siblings, 0 replies; 6+ messages in thread From: Andrey Lisin @ 2015-02-28 18:05 UTC (permalink / raw) To: Javier; +Cc: help-gnu-emacs Nice! Thanks for help everyone! ^ permalink raw reply [flat|nested] 6+ messages in thread
* How get escape sequence generated by keyboard shortcut in Emacs? @ 2015-02-28 15:33 Andrey Lisin [not found] ` <87ioemuirj.fsf@gmail.com> 0 siblings, 1 reply; 6+ messages in thread From: Andrey Lisin @ 2015-02-28 15:33 UTC (permalink / raw) To: help-gnu-emacs 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! ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <87ioemuirj.fsf@gmail.com>]
[parent not found: <EC3D20A4-BC2D-4616-B59F-41CDB641FC2A@gmail.com>]
* Re: How get escape sequence generated by keyboard shortcut in Emacs? [not found] ` <EC3D20A4-BC2D-4616-B59F-41CDB641FC2A@gmail.com> @ 2015-02-28 16:28 ` Tory S. Anderson 0 siblings, 0 replies; 6+ messages in thread From: Tory S. Anderson @ 2015-02-28 16:28 UTC (permalink / raw) To: Andrey Lisin, Emacs Help List 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! > ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-02-28 18:05 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [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 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
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).