On Thu, 16 Mar 100, T.E.Dickey wrote:

> > > With lynx/slang one can use the numeric keypad to enter numbers when in
> > > a text-entry field or text area. Outside of the text area the numeric
> > > keypad still act as arrows. With lynx/ncurses the numeric keypad act as
> > > arrows even in a text area, what makes impossible to the user to enter
> > > numbers using the keypad.
> >  
> > Not in general (and certainly not for me, if I have "NumLock" activated). 
> >  
> > I would guess that it is something in the terminfo for your $TERM that
> > gets ignored by slang but gets used by ncurses. Some escape sequence that
> > affects your terminal emulator, possibly in one of the init or reset
> > strings.
> 
> iirc, slang doesn't send the terminal initialization string (which usually
> sets the keypad to application mode).

I believe it's something that lynx/slang uses, switching from application to
numeric mode according to the context, and that ncurses ignores. By the way,
what would be that "initialization string"? It seems that it's like several
termcaps and terminfos I've found, with very different entries for the same
terminals. Which one is correct? To change from numeric to application mode
and vice versa it's better to use the right commands for VT100/102 terminals:
ESC = and ESC >.

> on a properly working vtxxx, there would be a workable "NumLock", which
> cancels that mode...

Well, that "vtxxx" should be "vt2xx" according to yourself...

Ismael
-- 
       ________________________________________________________________
      |                                                                |
      | ISMAEL CORDEIRO            | mailto:[EMAIL PROTECTED]        |
      | Production sound mixer     | http://ismael.cordeiro.com/       |
      | Montr�al - Qu�bec - Canada | ftp://ftp.pubnix.net/users/ismael |
      |________________________________________________________________|

Reply via email to