curses help needed
Dave Kraft
davek at lakesys.UUCP
Sun Apr 23 06:35:12 AEST 1989
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 <curses.h>
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 at 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'
More information about the Comp.unix.xenix
mailing list