Question re: curses in SCO Xenix?

Dave Hammond daveh at marob.MASA.COM
Fri Mar 10 01:07:50 AEST 1989


>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 at marob.masa.com



More information about the Comp.unix.xenix mailing list