Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!haven!adm!cmcl2!phri!marob!daveh From: daveh@marob.MASA.COM (Dave Hammond) Newsgroups: comp.unix.xenix Subject: Re: Question re: curses in SCO Xenix? Message-ID: <587@marob.MASA.COM> Date: 9 Mar 89 15:07:50 GMT References: <574@sunset.MATH.UCLA.EDU> Reply-To: daveh@marob.masa.com (Dave Hammond) Distribution: usa Organization: ESCC New York City Lines: 23 >cc -Ml -LARGE -s -SEG256 admin.o chg_dir.o curses.o d_delete.o [...] >[...] x_rcv.o x_send.o x_win.o xmodem.o -o pcomm -ltermlib -lcurses > >/bin/ld: Unresolved externals: > >_nap in file(s): > /lib/Llibcurses.a(getch.c) >*** Error code 1 > >My question is what is _nap? nap() is an undocumented call invoked by the Xenix terminfo version's getch() function--it is accessed by linking with the Xenix library "x" (ie add "-lx" to the cc command line before -ltermlib). BTW, you may well experience problems using SCO's getch() call--it has a nasty habit of returning null when the 'D' (or is it 'd'?) and 'P' keys are pressed. Good luck. -- Dave Hammond daveh@marob.masa.com