[Top][All Lists]

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

second newterm with sp_funcs enabled returns NULL pointer

From: Thomas Beierlein
Subject: second newterm with sp_funcs enabled returns NULL pointer
Date: Tue, 22 Apr 2014 19:02:46 +0200


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

That can also be shown by the following simple program:

#include <ncurses.h>

int main() {
 x = newterm(NULL, stdout, stdin);
 y = newterm(NULL, stdout, stdin);
 return 0;

x is correctly initialized, but y is NULL in the end.

I did some search on the net and also had a first look into the code -
but sorry I do not get it. The use of the sp-funcs is not really well
documented. Any ideas or pointers are welcome.


"Do what is needful!"
Ursula LeGuin: Earthsea

reply via email to

[Prev in Thread] Current Thread [Next in Thread]