Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!uwmcsd1!lakesys!davek From: davek@lakesys.UUCP (Dave Kraft) Newsgroups: comp.unix.xenix Subject: curses help needed Keywords: curses, getch(), Xenix Message-ID: <569@lakesys.UUCP> Date: 22 Apr 89 20:35:12 GMT Organization: Lake Systems - Milwaukee, Wisconsin Lines: 47 Hi, I recently purchased "Unix System V/386 Programmer's Guide", and in the chapter on curses, I came upon the program below. I am using SCO Xenix version 2.3, release 1. The program is as follows: /* Example, page 10-33, "Unix System V/386 Programmer's Guide" */ #include main() { int ch; initscr(); cbreak(); addstr("Press any character: "); refresh(); ch = getch(); printw("\n\n\nThe character entered was a '%c'.\n",ch); refresh(); endwin(); } Now, when compiled with the following cc cursestst.c -lcurses I get the following message: LINK: unresolved externals: _nap in file(s): /lib/386/Slibcurses.a(gettch.c) Now, I thought maybe it was due to Unix/Xenix cross-programming, so, I checked my man page on the curses getch(), and it mached with what the book said (on page 10-32), so, I am not sure what is causing this problem. I am trying to write windows-type software for a local company. Any help would be appriciated. Thanks in advance. Dave -- davek@lakesys.lakesys.com -OR- uunet!marque!lakesys!davek ------------------------------------------------------------------------------- "The mystical divinity of unashamed felinity. 'Round the cathedral rang 'Vivat!' Life to the everlasting Cat!" --'Cats'