[comp.unix.xenix] Xenix curses bug

samperi@marob.MASA.COM (Dominick Samperi) (11/24/88)

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@acf8.NYU.EDU	samperi@marob.MASA.COM
    cmcl2!phri!marob        	uunet!hombre!samperi
      (^ ell)