From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: Unwanted keybinding translation Date: Sat, 01 Sep 2012 10:26:05 +0300 Organization: At home. Message-ID: <87pq6619wy.fsf@gavenkoa.example.com> References: <87a9xaafp2.fsf@googlemail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1346484619 24342 80.91.229.3 (1 Sep 2012 07:30:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Sep 2012 07:30:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 01 09:30:20 2012 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 1T7i9q-0002iy-17 for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Sep 2012 09:30:18 +0200 Original-Received: from localhost ([::1]:60096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7i9n-0002hE-Hs for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Sep 2012 03:30:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7i9h-0002gt-GQ for help-gnu-emacs@gnu.org; Sat, 01 Sep 2012 03:30:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7i9g-0005Ml-2S for help-gnu-emacs@gnu.org; Sat, 01 Sep 2012 03:30:09 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:52748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7i9f-0005J9-Qx for help-gnu-emacs@gnu.org; Sat, 01 Sep 2012 03:30:07 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T7i9c-0002Wt-0E for help-gnu-emacs@gnu.org; Sat, 01 Sep 2012 09:30:04 +0200 Original-Received: from 46.211.201.73 ([46.211.201.73]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Sep 2012 09:30:03 +0200 Original-Received: from gavenkoa by 46.211.201.73 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Sep 2012 09:30:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 46.211.201.73 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:kIicgYjlp1F30gEIwGqTXEx3vKA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:86624 Archived-At: On 2012-09-01, Thorsten Jolitz wrote: > I have the following in my .emacs (since the C-M-v keybinding does not > work on the console in my case): > To debug key sequence translation in console use Expect script: https://sourceforge.net/u/gavenkoa/utils/ci/tip/tree/misc/keyseq.exp?format=raw or such C program: #include #include int main() { int ch; while ((ch = getchar()) != EOF) { if (ch == 27) { puts("key: \\e"); } else if (ch <= 26) { printf("hex: ox%02x, key: \\C-%c\n", ch, ch+64); } else { printf("hex: ox%02x, key: %c\n", ch, ch); } } return EXIT_SUCCESS; } You can switch terminal in raw mode before run C program: $ stty raw or press RET after. -- Best regards!