tech-userlevel archive

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

Re: terminfo vs termcap

>>> [...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.)

We've had the t_* suite of calls since, at least, 1.4T.  (I knew
sticking with 1.4T would be good for soemthing someday. :)

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML      
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Home | Main Index | Thread Index | Old Index