Some keys are not properly recognized in Konsole/xterm

Thomas Dickey dickey at his.com
Mon Feb 1 11:50:45 UTC 2010


On Mon, 1 Feb 2010, Thomas Dickey wrote:

> On Mon, 1 Feb 2010, Miguel Pérez wrote:
>
>> I love the ability to customize keybindings in 4.7. However, I've noticed
>> some keys cannot be bound because they aren't recognized properly by
>> Midnight Commander. When you hit an unrecognized sequence, mc will simply
>> skip the escape sequence up to a point and print the rest of it.
>> 
>> I'm using Konsole, set to the xterm (XFree 4.x.x) keyboard, and $TERM is
>> xterm. These are the key combinations that produce escape sequences but
>> aren't recognized by mc. Everything else either works, or doesn't produce a
>
> konsole doesn't send escape sequences that match xterm.
> Use "infocmp konsole xterm" to see this.

...of course that's assuming that mc relies on the terminal description
(I seem to recall some discussion where it's using separate configuration
information).

Assuming that it's actually using the terminal description, e.g., from 
ncurses, then mismatches would be due to (a) not using TERM=konsole, and 
(b) futher mismatches might be due to differences between the current 
konsole application and the ncurses description.

A quick check (using tack and TERM=konsole for konsole 2.3.2) shows no 
issues.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


More information about the mc-devel mailing list