On Fri, Sep 14, 2001 at 12:01:22AM +0200, Vincent Lefevre wrote:
> I switched from xterm-color to rxvt because of some terminfo problems
> with xterm-color, but now the arrow keys and the numeric keypad don't
> work any longer with my terminal. I think the problem comes from the
> fact that Mutt switches to the application keypad but doesn't support
> it! Could this be changed?
> 
> I use Mutt 1.3.22.1i under Linux 2.2.17 with ncurses 4.0.

ncurses 4.0 is a bit old (unless you're using one of Redhat's broken-rpm's -
I'm assuming that's the case if you have a 2.2x kernel).

rxvt's terminfo defines smkx/rmkx, so it does attempt to set the keypad
to application mode.  however, xterm-color does also - but they're different:

comparing xterm-color to rxvt.
(60 lines of difference omitted)
        rmkx: '\E[?1l\E>', '\E>'.
        smkx: '\E[?1h\E=', '\E='.

(referring to ctlseqs.ms, in xterm) -
The \E[?1h in the xterm-color sets the cursor keys also into application
mode, which may be a problem if you have hardcoded values for the escape
sequences (doesn't mutt allow you to specify the termcap or terminfo
names? - if not, that's a defect in mutt).

-- 
Thomas E. Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net

Reply via email to