From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: torys.anderson@gmail.com (Tory S. Anderson) Newsgroups: gmane.emacs.help Subject: Re: How get escape sequence generated by keyboard shortcut in Emacs? Date: Sat, 28 Feb 2015 11:28:53 -0500 Message-ID: <87d24uuhiy.fsf@gmail.com> References: <87ioemuirj.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1425140952 17611 80.91.229.3 (28 Feb 2015 16:29:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Feb 2015 16:29:12 +0000 (UTC) To: Andrey Lisin , Emacs Help List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 28 17:29:10 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YRkGK-0004R2-Ex for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Feb 2015 17:29:08 +0100 Original-Received: from localhost ([::1]:41643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRkGJ-00066B-Oh for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Feb 2015 11:29:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRkG8-00063U-J1 for help-gnu-emacs@gnu.org; Sat, 28 Feb 2015 11:28:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRkG7-0004EJ-Eq for help-gnu-emacs@gnu.org; Sat, 28 Feb 2015 11:28:56 -0500 Original-Received: from mail-qg0-x22b.google.com ([2607:f8b0:400d:c04::22b]:41292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRkG7-0004EF-AI for help-gnu-emacs@gnu.org; Sat, 28 Feb 2015 11:28:55 -0500 Original-Received: by mail-qg0-f43.google.com with SMTP id i50so18929834qgf.2 for ; Sat, 28 Feb 2015 08:28:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=OjRiVgIbyhpcVhxdsikeEAtU2SKAeYoo3DeJL4JEL4w=; b=T+TdE/DqGJ2Sx3xAjZgYTsNN42x6s08HUz4V9WmFmoi3sKCX/Rd8DNfnOcJs3e5QcA twaV2EFJ2lQKqDup1ow5ZowOHuwqt9QKrq03YK5OieWIPAb/rcXcZuUslkIWk0bjxawW 7Oq+CPfpXbxDayDabjGYxw6GZg9/khqhIMxm7hqyHy1fkFYmv2U+KfZVaSpV5i8Ny9eR A1ooARY+SCMcJqsfmMCeF3EIyhCT7ZHyNaweFC27j3iVsa4u5UPD7hsaZY62zSkfK+UQ l+6srF+5w43AU3iEHWiwQsiK74R6E891owjWEVYzibUoXApXgFFmdbMc6ycBlemyTuJZ el0w== X-Received: by 10.140.151.141 with SMTP id 135mr39916464qhx.8.1425140934846; Sat, 28 Feb 2015 08:28:54 -0800 (PST) Original-Received: from localhost.localdomain ([2601:0:a640:1577:ee55:f9ff:feb5:5589]) by mx.google.com with ESMTPSA id n77sm4828784qha.19.2015.02.28.08.28.53 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Feb 2015 08:28:54 -0800 (PST) In-Reply-To: (Andrey Lisin's message of "Sat, 28 Feb 2015 22:14:40 +0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c04::22b X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102951 Archived-At: 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 seem to be as low-level as emacs gets. Andrey Lisin 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 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! >