Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mcvax!diku!ambush!kimcm From: kimcm@ambush.UUCP (Kim Chr. Madsen) Newsgroups: comp.unix.questions Subject: Re: How do you link the terminfo library on SysV.2? Message-ID: <449@ambush.UUCP> Date: Tue, 4-Aug-87 04:23:40 EDT Article-I.D.: ambush.449 Posted: Tue Aug 4 04:23:40 1987 Date-Received: Sat, 8-Aug-87 08:53:01 EDT References: <2316@bnrmtv.UUCP> Organization: AmbraSoft A/S (Denmark) Lines: 29 In article <2316@bnrmtv.UUCP> rapin@bnrmtv.UUCP (Eric Rapin) writes: >I have a program which was developed on 4.3BSD which >uses -ltermcap as a ld option. >I know that SysV uses terminfo not termcap but I've yet >to figure out how to link to it. I know it sounds a little silly but you'll have to use the curses, library -lcurses to use terminfo (or the interpreted termcap routines). >terminfo seems to have a strange organization that is unlike >any "typical" library. The organization in terminfo is that there is fixed addresses for each known "terminfo" attribute and the routines just addresses themeselves into the compiled terminfo entry with the wanted attribute address. This organization has it's advantages in speed: once you know your terminal type you have a file containing only the attributes for this terminal and looking up the attribute value by random access. But also the disadvantage of not being able to add new attributes to the files. >Is this standard SysV or could I be dealing with an idiosyncracy >of Amdahl UTS? This is pretty much standard SYSV - though there is PD packages providing the termcap/termlib libraries using good ol' /etc/termcap and/or terminfo. Certain vendors also include BSD enhancements in form of the mentioned libraries. Kim Chr. Madsen.