[Top][All Lists]

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

Re: alt-1,2,... key

From: Phil!Gregory
Subject: Re: alt-1,2,... key
Date: Sun, 11 Jul 2004 14:23:54 -0400
User-agent: Mutt/

* Neszt Tibor <address@hidden> [2004-07-09 11:03 +0200]:
> Is that possible to set key alt-1, alt-2, ... to switch to window 1,2,...?
> (instead of c-a 1, c-a 2, ...)

Probably.  The catch is that there are two different ways for terminal
emulators to send Meta keys (which is what Alt is generally mapped as).
One approach involves setting the high bit of the incoming character; I
don't know how to get screen to work with that.

On the other hand, you can configure many emulators to translate, say
'M-1' to 'ESC 1'.  To do this in xterm, you have to add the following
lines to your ~/.Xresources file:

  XTerm*eightBitInput: false
XTerm*metaSendsEscape: true

The rest is just some simple work with bindkey.  In your .screenrc:

bindkey "^[1" select 1
bindkey "^[2" select 2
bindkey "^[3" select 3

and so on.

-- contrarian of the first order... /
PGP: 026A27F2  print: D200 5BDB FC4B B24A 9248  9F7A 4322 2D22 026A 27F2
--- --
 <rmah> billn, baisc human nature has to change for bigotry to go away
<billn> rmah: no, I just need bigger guns.
                       -- seen on #perl
---- --- --

reply via email to

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