Xenix curses bug
Dominick Samperi
samperi at marob.MASA.COM
Thu Nov 24 14:54:49 AEST 1988
The following program illustrates a strange bug that exists in the SCO
Xenix version of curses. If the source is placed into bug.c, and
compiled with: cc -Ml2 -DM_TERMINFO bug.c -ltinfo -lx,
then getch() returns 0 when the letter 'd' is entered. Any other letter
is recognized (and returned) fine. If the keypad() statement is removed,
the problem disappears. Any ideas?
#include <curses.h>
main()
{
int c ;
initscr() ;
keypad(stdscr, TRUE) ;
c = getch() ;
endwin() ;
printf("c = %c\n", c) ;
}
--
Dominick Samperi, NYC
samperi at acf8.NYU.EDU samperi at marob.MASA.COM
cmcl2!phri!marob uunet!hombre!samperi
(^ ell)
More information about the Comp.unix.xenix
mailing list