[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: second newterm with sp_funcs enabled returns NULL pointer
From: |
Thomas Dickey |
Subject: |
Re: second newterm with sp_funcs enabled returns NULL pointer |
Date: |
Sat, 26 Apr 2014 13:07:01 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Tue, Apr 22, 2014 at 07:02:46PM +0200, Thomas Beierlein wrote:
> Hi,
>
> I am maintaining an old ncurses program for some years (tlf) which uses
> two terminal screens. Last days I got a bug report that the second
> screen does not work in OpenSUSE environment. A quick check showed that
> libncurses (5.9) got build there with --enable-sp-funcs. Digging a
> little further only a first call to newterm() returns a valid SCREEN*,
> a second call to establish a second terminal screen always returns
> NULL.
>
> That can also be shown by the following simple program:
>
> --
> #include <ncurses.h>
> SCREEN *x;
> SCREEN *y;
>
> int main() {
> x = newterm(NULL, stdout, stdin);
> y = newterm(NULL, stdout, stdin);
I can reproduce this, looks like a bug (am looking into that, now).
(as an aside, I would not expect to have two screens open for the same I/O -
perhaps tlf doesn't do _that_)
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature