Alt+function keys and other keys
Thomas Dickey
dickey at his.com
Tue Mar 16 11:04:52 UTC 2010
On Fri, Mar 12, 2010 at 02:14:37PM +0100, Miguel Pérez wrote:
> 2010/3/12 Thomas Dickey <dickey at his.com>
>
> > On Fri, 12 Mar 2010, Miguel Pérez wrote:
> >
> > It does, but they are not recognized. Here's an example of different
> >> alt-f1
> >> sequences I've seen:
> >>
> >> Konsole (TERM=konsole), native keyboard ("xterm XFree 4.x.x"): ^[O3P
> >> xterm (TERM=xterm): ^[[1;3P
> >> urxvt (TERM=rxvt-unicode): ^[^[[11~
> >> mlterm (TERM=mlterm): ^[[11;3~
> >>
> >> Midnight Commander doesn't recognize any of these. I wonder what kind of
> >> terminal does it expect (shouldn't it be flexibly detected from TERM?).
> >>
> >
> > terminfo should provide the details (using the convention from xterm,
> > which encodes 12 function-keys with control-, shift-, alt-modifiers).
> >
>
> > The last I noticed, Konsole doesn't _set_ $TERM, but has a keyboard setting
> > (analogous to the predefined flavors in xterm for Sun, HP, etc).
> >
>
> Then something seems to be wrong, because I have TERM properly set in the
> various terminals, yet Midnight Commander doesn't seem to understand many of
> the posible escape sequences (mostly Alt/Control combinations with
> Fn/Ins/Del/Home/End and Shift+Tab).
Midnight Commander could be modified to use ncurses' extended terminal
descriptions. Here's some detail on that:
http://invisible-island.net/ncurses/ncurses.faq.html#modified_keys
--
Thomas E. Dickey <dickey at invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20100316/3a43a0d2/attachment.asc>
More information about the mc-devel
mailing list