X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW,TW_MV
X-Spam-Check-By: sourceware.org
Message-ID: <4BF4AC40.4010303@cwilson.fastmail.fm>
Date: Wed, 19 May 2010 23:28:00 -0400
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: ncurses problem with mvcur function
References: <426823.4782.qm@web34408.mail.mud.yahoo.com>
In-Reply-To: <426823.4782.qm@web34408.mail.mud.yahoo.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 5/19/2010 9:09 PM, Joe Java wrote:
> I have a very old game that uses ncurses.
> 
> lines 602-603 are
>       /* this moves curses to bottom right corner */
>       mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0);
> 
> lines 738-739 are the same as above.

ncurses is now compiled with reentrant support, which had the
unfortunate effect of changing the API slightly, by making the WINDOW
object an opaque pointer.  Instead of accessing the members of curscr
directly, you use accessor functions:

  curscr->_cury ---> getcury(curscr)
  curscr->_curx ---> getcurx(cursrc)

--
Chuck

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

