bug-ncurses
[Top][All Lists]
Advanced

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

Re: multiple calls of newterm can return the same SCREEN *


From: Thomas Dickey
Subject: Re: multiple calls of newterm can return the same SCREEN *
Date: Tue, 24 May 2016 20:26:16 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, May 24, 2016 at 03:51:30AM +0000, Mike Gran wrote:
> Hello.
> 
> I was checking out the multiple screen functionality
> ncurses when writing a unit test, and I'm not sure that
> it works as described in the docs.
> 
> Granted, I'd be very unlikely to use multiple screens 
> outside of unit testing, but, anyway...
> 
> In the example below, I've created screens from two different
> files, but the return from newterm() is the same for both.
> 
> 
> On my box, the output is 
> 
> 
> version: ncurses 6.0.20160116
> screen #1: 0x00602470   stdscr #1: 0x0066ca10
> screen #2: 0x00602470   stdscr #2: 0x0066ca10

sorry - you ran into a bug that I fixed recently:

http://invisible-island.net/ncurses/NEWS.html#t20160213

20160213
        + amend fix for _nc_ripoffline from 20091031 to make test/ditto.c work
          in threaded configuration.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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