delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/19/23:28:40

X-Recipient: archive-cygwin AT delorie DOT 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 AT cwilson DOT fastmail DOT 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 AT cygwin DOT com>
Subject: Re: ncurses problem with mvcur function
References: <426823 DOT 4782 DOT qm AT web34408 DOT mail DOT mud DOT yahoo DOT com>
In-Reply-To: <426823.4782.qm@web34408.mail.mud.yahoo.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019