curses/terminfo problem

curses/terminfo problem

Post by Mar » Fri, 18 Dec 1998 04:00:00



I've written a program using curses under AIX that works great with
one terminfo file, but not another.  When using the problem terminfo
('ansi'), any function key pressed has the value decimal 1864 (aka
KEY_FN(0)) returned from the getch() function. If I don't use the
keypad() function, it returns decimal 27 (ESC).

When at the command line using 'cat -v', the function keys seem to be
delivering the codes as defined for the function keys in the terminfo
file, but they're simply not returned from getch().  Any clue what the
problem is??

Thanks.

 
 
 

curses/terminfo problem

Post by T.E.Dicke » Sat, 19 Dec 1998 04:00:00



> I've written a program using curses under AIX that works great with
> one terminfo file, but not another.  When using the problem terminfo
> ('ansi'), any function key pressed has the value decimal 1864 (aka
> KEY_FN(0)) returned from the getch() function. If I don't use the
> keypad() function, it returns decimal 27 (ESC).
> When at the command line using 'cat -v', the function keys seem to be
> delivering the codes as defined for the function keys in the terminfo
> file, but they're simply not returned from getch().  Any clue what the
> problem is??

what does the 'ansi' terminfo description look like (e.g., the output
using infocmp)?  perhaps it simply does not have the other function
keys defined, and curses is picking up the common prefix (which is likely
if the terminfo does not really match the terminal's capabilities).

what type of terminal is it?  (there's no vendor for "ansi").

--
Thomas E.*ey

http://www.veryComputer.com/

 
 
 

1. curses/terminfo problem

I've written a program using curses under AIX that works great with
one terminfo file, but not another.  When using the problem terminfo
('ansi'), any function key pressed has the value decimal 1864 (aka
KEY_FN(0)) returned from the getch() function. If I don't use the
keypad() function, it returns decimal 27 (ESC).

When at the command line using 'cat -v', the function keys seem to be
delivering the codes as defined for the function keys in the terminfo
file, but they're simply not returned from getch().  Any clue what the
problem is??

Thanks.

2. pipes trimming output?

3. VPN

4. terminfo/curses compile problem

5. test

6. GUI/UI that do Unix Curses/Terminfo/Termcap/etc (????)

7. networking

8. curses missing terminfo.h

9. Curses, terminfo and termcap followups

10. curses & terminfo questions

11. unify vs curses vs terminfo

12. curses rewrites terminfo escape sequences????