emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more key bindings for xterm


From: Dan Nicolaescu
Subject: Re: more key bindings for xterm
Date: Tue, 12 Apr 2005 23:12:15 -0700

"Eli Zaretskii" <address@hidden> writes:

  > > From: Dan Nicolaescu <address@hidden>
  > > Date: Tue, 12 Apr 2005 16:25:34 -0700
  > > 
  > > xterm emits different strings for S-function_key, C-function_key, 
  > > A-function_key, C-S-function_key, A-C-function_key, A-S-function_key
  > > where function_key is one of: f1...f12, prior, next, home, end,
  > > insert, delete, prior, next, up, down, left, right. 
  > > 
  > > xterm.el does not have support for all these combinations. 
  > > The patch below adds the necessary key bindings in order to support
  > > these keys. May I check it in? 
  > 
  > In what xterm did you test these?  I remember vaguely that I tried in
  > the past to add more bindings to xterm.el, but abandoned the idea
  > after I discovered that different flavors of Unix had xterm's that
  > used incompatible bindings.

I used xterm-200 that I compiled. 

Hmmm, it seems that xterm X.Org 6.7.0(192) (that comes with Fedora
Core 3) uses different sequences for {C-,S-,C-S-}-f[1234]
Recompiling xterm-200 with the flags the FC3 uses, I get the same
strings as the FC3 xterm.

These are the new bindings: 

  (define-key map "\eOP" [f1])
  (define-key map "\eOQ" [f2])
  (define-key map "\eOR" [f3])
  (define-key map "\eOS" [f4])

  (define-key map "\eO2P" [S-f1])
  (define-key map "\eO2Q" [S-f2])
  (define-key map "\eO2R" [S-f3])
  (define-key map "\eO2S" [S-f4])

  (define-key map "\eO5P" [C-f1])
  (define-key map "\eO5Q" [C-f2])
  (define-key map "\eO5R" [C-f3])
  (define-key map "\eO5S" [C-f4])

  (define-key map "\eO6P" [S-C-f1])
  (define-key map "\eO6Q" [S-C-f2])
  (define-key map "\eO6R" [S-C-f3])
  (define-key map "\eO6S" [S-C-f4])

  (define-key map "\eO6P" [A-f1])
  (define-key map "\eO6Q" [A-f2])
  (define-key map "\eO6R" [A-f3])
  (define-key map "\eO6S" [A-f4])

Indeed, proprietary unixes use all kind of weird sequences for
these keys. 

But it seems that X.org is now what most people seem to be converging
to. So supporting these bindings should be helpful for a lot of users. 

    --dan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]