Re: Alt+function keys and other keys



On Fri, Mar 12, 2010 at 02:14:37PM +0100, Miguel Pérez wrote:
> 2010/3/12 Thomas Dickey <dickey 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 invisible-island net>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature



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