tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: terminfo vs termcap

On Saturday 06 June 2009 03:46:59 der Mouse wrote:
> >>> [...a single process using multiple terminal types...]
> >>
> >> There are no arguments to pass to the put function to indicate where
> >> output should go and there is a single global "current TERMINAL"
> >> state.
> >
> > oh.  termcap can't do that either (unless you're talking about a
> > different implementation from that which everyone else uses).
> Traditional termcap can't.  We do, however, have t_getent, t_getnum,
> etc, which do appear to fully support using multiple terminal types.
> (Even traditional termcap can support use of multiple terminals, though
> not multiple types; most functions return strings, and the one that
> doesn't - tputs - takes a callback to handle output.)

Those are NetBSD extensions.
We can always extent terminfo functions in a similar vein.



Home | Main Index | Thread Index | Old Index