Reading termcap database other than termcap

Horst Laumer hotte at sunrise.in-berlin.de
Thu Nov 29 11:42:12 AEST 1990


mjr at 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 at sunrise.in-berlin.de              ! Junk-Food for Autorouters
Bang:   ...unido!fub!geminix!sunrise!hotte      ! -- me --



More information about the Comp.unix.programmer mailing list