ncurses problem with mvcur function

Joe Java cop3252@yahoo.com
Thu May 20 17:36:00 GMT 2010


Hello Charles

Thank you, the old game now compiles OK.

     Joe

--- On Wed, 5/19/10, Charles Wilson <cygwin@cwilson.fastmail.fm> wrote:

From: Charles Wilson <cygwin@cwilson.fastmail.fm>
Subject: Re: ncurses problem with mvcur function
To: "Cygwin Mailing List" <cygwin@cygwin.com>
Date: Wednesday, May 19, 2010, 11:28 PM

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






--
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



More information about the Cygwin mailing list