On Thu, Sep 13, 2001 at 18:50:41 -0400, Thomas Dickey wrote:
> 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).
We have RedHat 6.2. I could also install a new ncurses version in my
HOME.
> 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,
With TERM=rxvt, if I send ks, this changes the behaviour of the arrow
keys (seen in less, for which I need to remove the line that sends ks
to have working arrow keys).
> 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).
I use <up>, <down> and so on, and \e[A, \e[B and so on (because on slow
terminals, <up>/<down>/... didn't work). But with TERM=rxvt, this doesn't
work. So, I think that with TERM=rxvt, the arrow keys are in application
mode, and this is not the case with TERM=xterm-color.
Note: with TERM=rxvt, after I type ":", the up arrow gives OA and the
down arrow gives OB. This confirms what I've said.
--
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA