bug-ncurses
[Top][All Lists]
Advanced

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

Re: keypad problem


From: Vincent Lefevre
Subject: Re: keypad problem
Date: Sun, 3 Feb 2002 20:40:37 +0100
User-agent: Mutt/1.5.0i

On Sun, Feb 03, 2002 at 13:53:05 -0500, Thomas Dickey wrote:
> The problem is lower than ncurses - ncurses can only work with the terminal
> description, assuming it is correct.

The terminal description is supplied with ncurses (terminfo.src).
If something is incorrect, it should be fixed.

> At the moment I'm not sure - iirc, you were using either XFree86
> xterm or rxvt.

I was using Nettle (a terminal under RISC OS), but in fact, I have
problems with xterm and rxvt too.

> A quick check of the latter
> (2.7.6) shows that it doesn't pay any attention to NumLock (and doesn't
> do what you want here).

Yes, it seems to assume that NumLock is never set (I would have prefered
the opposite).

> For the former, it does try to do this (but there are various
> xmodmap settings that can break the behavior). I do use it...

The cursor keys work. Concerning the numeric keypad, I don't know, as
I use xmodmap to produce real digits (thus, the keys don't appear to
come from the numeric keypad). On my PowerBook, I can try the numeric
keypad via the Fn key, and it doesn't work (ESC O t is produced for
KP_4 and isn't interpreted as expected).

With Nettle, I have to use an existing terminfo. This is both a ncurses
and Nettle problem. Nettle can use vt100, vt102, vt220, xterm and
xterm-color, but neither is perfect. The best solution would be to
find something correct. But there's still a problem. One of the Nettle
developers told me:

  I'm not sure - emacs does ask to turn the application keypad on
  rather than the numeric keypad, which is why Nettle will send
  application keypad codes rather than numeric ones...

(I don't know if emacs uses ncurses, but there is the same problem
with Mutt compiled with ncurses). Thus, if I understood correctly,
it is correct to send ESC O t as the application asked to turn the
application keypad on. The problem is that ncurses doesn't interpret
it at all.

-- 
Vincent Lefèvre <address@hidden> - 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]