all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleksandr Gavenko <gavenkoa@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Unwanted keybinding translation
Date: Sat, 01 Sep 2012 10:26:05 +0300	[thread overview]
Message-ID: <87pq6619wy.fsf@gavenkoa.example.com> (raw)
In-Reply-To: 87a9xaafp2.fsf@googlemail.com

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 <stdlib.h>
  #include <stdio.h>

  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!




  reply	other threads:[~2012-09-01  7:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-31 21:56 Unwanted keybinding translation Thorsten Jolitz
2012-09-01  7:26 ` Oleksandr Gavenko [this message]
2012-09-01 12:45   ` Thorsten Jolitz

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pq6619wy.fsf@gavenkoa.example.com \
    --to=gavenkoa@gmail.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.