Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!unido!opal!tmpmbx!utopia!sunrise!hotte From: hotte@sunrise.in-berlin.de (Horst Laumer) Newsgroups: comp.unix.programmer Subject: Re: Reading termcap database other than termcap Message-ID: <8XRLK0H@sunrise.in-berlin.de> Date: 29 Nov 90 00:42:12 GMT References: <1990Nov27.145614.24112@decuac.dec.com> Organization: HL EDV-Beratung Lines: 25 mjr@hussar.dco.dec.com (Marcus J. Ranum) writes: > I have a hacked up copy of the printcap code from the BSD 'lpr' >command that implements a "caplib" library - generic "termcap" capabilities. >It differs from the "standard" termcap in that it wants to know the sizes >of the buffers passed to it, and checks for overflow. It also doesn't >support the egregious tc= kludge. There's no support for grabbing the >entry out of the environment, but that shouldn't be very hard at all. >[the way BSD does that also is a kludge - getting it out of the environment >or not should be done at a higher level than in capgetent(), IE: if there >is no XXXXCAP in the environment, *then* it uses capgetent(), etc] > If anyone wants a copy, let me know. I would be very interested in a copy. BTW, wouldn't it be good posting it ? (Rich Salz and c.s.u., ok, ok) thanks ahead hl -- ============================================================================ Horst Laumer, Kantstrasse 107, D-1000 Berlin 12 ! Bang-Adress: Domain: hotte@sunrise.in-berlin.de ! Junk-Food for Autorouters Bang: ...unido!fub!geminix!sunrise!hotte ! -- me --