Curses Bug? (4.2 BSD)

Joseph S. D. Yao jsdy at hadron.UUCP
Fri Jan 3 00:10:51 AEST 1986


In article <151 at hadron.UUCP> jsdy at hadron.UUCP (Joseph S. D. Yao) writes:
>In article <637 at wjvax.wjvax.UUCP> brett at wjvax.UUCP (Brett Galloway) writes:
>>                                                 ...  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.
>Try using:
>	boolean tgetflag(name);
>	int tgetnum(name);
>	char *tgetstr(name);

But first read man 3 termcap.  That last is tgetstr(name, &namebuf).
It seems that all of these require a first call to tgetent(buf, term).
Don't forget to check all return values for error, and don't call any
of those three routines in a context in which tgetent()'s buf is no
longer valid.
-- 

	Joe Yao		hadron!jsdy at seismo.{CSS.GOV,ARPA,UUCP}



More information about the Comp.bugs.4bsd.ucb-fixes mailing list