tech-userlevel archive

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

Re: terminfo vs termcap

On Fri, Jun 05, 2009 at 10:46:59PM -0400, 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.)

terminfo provides the "same" tputs, which in the original comment was
implied to be deficient.

t_getent/etc solve part of the problem; I don't see any evidence that
they solve the entire problem which was stated.


Thomas E. Dickey

Attachment: pgpTbQR0riAqd.pgp
Description: PGP signature

Home | Main Index | Thread Index | Old Index