This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ncurses problem with mvcur function
- From: Joe Java <cop3252 at yahoo dot com>
- To: Cygwin Mailing List <cygwin at cygwin dot com>, Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- Date: Thu, 20 May 2010 09:38:50 -0700 (PDT)
- Subject: Re: ncurses problem with mvcur function
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