Path: utzoo!attcan!uunet!husc6!cmcl2!phri!marob!samperi From: samperi@marob.MASA.COM (Dominick Samperi) Newsgroups: comp.unix.xenix Subject: Xenix curses bug Message-ID: <399@marob.MASA.COM> Date: 24 Nov 88 04:54:49 GMT Organization: ESCC New York City Lines: 23 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 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)