In article <775031555b2e76dc17978bcf9ab19b9f@localhost>,
Roy Marples <roy%marples.name@localhost> wrote:
On Sat, 6 Jun 2009 13:07:27 +0200, Martin Husemann
<martin%duskware.de@localhost>
wrote:
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
set_curterm(oterm);
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.