This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ncurses problem with mvcur function
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Wed, 19 May 2010 23:28:00 -0400
- Subject: Re: ncurses problem with mvcur function
- References: <426823.4782.qm@web34408.mail.mud.yahoo.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