tech-userlevel archive

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

Re: terminfo vs termcap

In article <775031555b2e76dc17978bcf9ab19b9f@localhost>,
Roy Marples  <> wrote:
>On Sat, 6 Jun 2009 13:07:27 +0200, Martin Husemann 
>> On Sat, Jun 06, 2009 at 04:30:40AM +0100, Roy Marples wrote:
>>> Those are NetBSD extensions.
>>> We can always extent terminfo functions in a similar vein.
>> Doesn't that kill the whole advantage of the move?
>You're ignoring the other advantages of terminfo as already discussed.
>But you can achieve similar functionality like so
>TERMINAL *oterm = set_curterm(nterm);
>// Do some foo

And sprinkle pthread_mutex_lock/unlock around each curses call so that
a terminal will not use the TERMINAL entry of another accidentally? Yes,
that would work, but it is a PITA.


Home | Main Index | Thread Index | Old Index