keymap trouble in rxvt-unicode (shift-arrows/home/end)
schmorp at schmorp.de
Fri Jun 17 21:13:15 CEST 2005
On Fri, Jun 17, 2005 at 01:25:06PM +0400, Eugene Pavlovsky <eugene at adsoft-development.com> wrote:
> I'm using rxvt-unicode 5.5, and I've got troubles - when I work in my text
> editor (le editor, you can find it in freshmeat by these keywords),
I used the debian "le" package, version 1.9.1.
> shift-arrows/home/end work like control-arrows/home/end should work, and
> control-arrows/home/end doesn't do anything at all (everything works
> fine in console - shift-arrows/home/end
Which console? the linux console? The linux console generates the same
keycode for the arrow keys regardless of the modifier pressed, so this
would be weird. The standard ncurses terminfo entry for the linux console
also does only list unsihfted arrow key sequences, and none for shifted
> move the cursor extending the selection, while control-left/right/home/end
> move to prev/next word and beg/end of file). I've contacted le's author,
> and he's telling me the problem is most likely in my terminal terminfo
Very unlikely, as terminfo has no way to specify codes for
control-arrow-keys, so whereever le tries to get them, it's not terminfo,
and the le author was at least partly wrong.
Most likely they are hardcoded somewhere.
In fact, a cursory glance over le sources shows that le indeed has lots of
sequences hardcoded - ignoring terminfo (see keymapdf.cc, "Movement with
block marking (new xterm codes)", for one example).
If sequences are hardcoded to a specific terminal (some version of xterm
I don't have) it seems no wonder that it doesn't work with others. It's
unfortunate, but most terminals differ in their keycodes and escape
It also seems that shift-arrow-left/right _should_ move by a single word,
and not select, as you wanted (again, keymapdf.cc in my version binds
shift-arrow to cursor movements).
> I'm using the default terminfo file installed by rxvt-unicode (the
> same as generated by tic etc/terminfo/rxvt-unicode). These keys also work
> fine in xterm.
In xterm, neither shift nur ctrl had any effect, or actually, the cursor
keys and home/end with shift or control had no visible effect, while
wihtout any modifiers, they worked fine. Likely the hardcoded sequences used
by le are not emitted by my (xfree86) xterm.
In summary, the problems seem entirely in le, and should be reported against
The choice of a
----==-- _ generation Marc Lehmann
---==---(_)__ __ ____ __ pcg at goof.com
--==---/ / _ \/ // /\ \/ / http://schmorp.de/
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE
More information about the rxvt-unicode