Curses Bug? (4.2 BSD)
Brett Galloway
brett at wjvax.UUCP
Sat Dec 28 07:09:48 AEST 1985
I saw the 4.2 curses buglist posted by Mike Laman at the end of October;
however, I ran into a problem not addressed therein. In a program which
uses curses I want to use a terminal capability which curses has not
read into its external capability list; namely I want the value of the
cs (scrolling region) and bl (audible bell) capability strings. I do
not want to have to read termcap AGAIN, since curses has already done so
via initscr(). My manual entry for curses (3X) includes a function
getcap(name) get terminal capbility name
This function has a type declaration in curses.h:
char *getcap();
However, it is NOT a symbol supplied by our curses library (either libcurses.a
or libtermcap.a); when I try to use it, the loader notes that "getcap" is
undefined.
Am I missing something obvious? It seems like one should be able to reference
the terminal entry that curses has read, without having to reread it. For
the time being, I will just write my own getcap() function which will
reread the termcap entry. Any help for a better solution would be
appreciated, however.
Thanks in advance.
-------------
Brett Galloway
{pesnta,twg,ios,qubix,turtlevax,tymix,vecpyr,certes,isi}!wjvax!brett
More information about the Comp.unix.wizards
mailing list