Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!cwruecmp!hal!ncoast!allbery From: allbery@ncoast.UUCP Newsgroups: comp.unix.questions Subject: Re: Re: How do you link the terminfo library on SysV.2? Message-ID: <4184@ncoast.UUCP> Date: Sun, 16-Aug-87 14:25:46 EDT Article-I.D.: ncoast.4184 Posted: Sun Aug 16 14:25:46 1987 Date-Received: Tue, 18-Aug-87 00:36:25 EDT References: <2316@bnrmtv.UUCP> <449@ambush.UUCP> <1377@chinet.UUCP> <454@ambush.UUCP> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: comp.unix.questions Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 37 As quoted from <454@ambush.UUCP> by kimcm@ambush.UUCP (Kim Chr. Madsen): +--------------- | Sure, that exactly the point you can replace any existing field but if I | want to include information about using graphic symbols on my teminal i.e. | to make frames around a window - neither the standard termcap or terminfo | supports this, but in termcap you could make new entries (provided you could | find a two-letter code not already in use) however it is impossible in | terminfo since it only allocates addresses (in the compiled entry) for known | fields - which is why the tic command has been altered between SYSVR2 and | SYSVR3 since more entries were added. Fast but clupsy - I'd rather had the +--------------- I solved this with a critter called "tgraph". SVR3 is supposed to provide a way to do it (and, module termcap/terminfo incompatibility itself) is actually compatible with 4.3BSD within the attribute names used. (--but is not compatible with tgraph, since that uses capnames in a terminfo-src-like file while the BSD4.3/SVR3 form uses a single capname with paired characters.)* I may be able to get the thing reposted if interest warrants. (My archives are inaccessible, since cpio doesn't run under MS-DOS. ;-) Basically, it defines a set of functions for box drawing ([mv][w]graph()) and a set of defines compatible with SVR3 curses (ACS_*) useable with the A_ALTCHARSET attribute in attrset(), etc. A header file defines the ACS_* characters, and the program must call graph("") (or [mv][w]graph("any box-drawing string")) to initialize the graphics array. ----- * I've heard that 4.3BSD supports them, at least. But 4.3BSD curses doesn't have attributes yet, so you can't use tgraph -- tgraph has to be used at the curses level, but 4.3 box graphics only work at the termcap level. -- Brandon S. Allbery, moderator of comp.sources.misc and comp.binaries.ibm.pc {{harvard,mit-eddie}!necntc,well!hoptoad,sun!mandrill!hal}!ncoast!allbery ARPA: necntc!ncoast!allbery@harvard.harvard.edu Fido: 157/502 MCI: BALLBERY <> ** Site "cwruecmp" is changing its name to "mandrill". Please re-address ** *** all mail to ncoast to pass through "mandrill" instead of "cwruecmp". ***