Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site hadron.UUCP Path: utzoo!linus!decvax!genrad!panda!talcott!harvard!seismo!rlgvax!hadron!jsdy From: jsdy@hadron.UUCP (Joseph S. D. Yao) Newsgroups: net.unix-wizards,net.bugs.4bsd Subject: Re: Curses Bug? (4.2 BSD) Message-ID: <158@hadron.UUCP> Date: Thu, 2-Jan-86 09:10:51 EST Article-I.D.: hadron.158 Posted: Thu Jan 2 09:10:51 1986 Date-Received: Sat, 4-Jan-86 07:03:06 EST References: <637@wjvax.wjvax.UUCP> <151@hadron.UUCP> Reply-To: jsdy@hadron.UUCP (Joseph S. D. Yao) Organization: Hadron, Inc., Fairfax, VA Lines: 19 Keywords: curses, 4.2, bsd Xref: linus net.unix-wizards:13459 net.bugs.4bsd:1608 Summary: Oops. In article <151@hadron.UUCP> jsdy@hadron.UUCP (Joseph S. D. Yao) writes: >In article <637@wjvax.wjvax.UUCP> brett@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@seismo.{CSS.GOV,ARPA,UUCP}