X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_MV,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <893105.67273.qm@web34401.mail.mud.yahoo.com> Date: Thu, 20 May 2010 09:38:50 -0700 (PDT) From: Joe Java Subject: Re: ncurses problem with mvcur function To: Cygwin Mailing List , Charles Wilson MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hello Charles Thank you, the old game now compiles OK. Joe --- On Wed, 5/19/10, Charles Wilson wrote: From: Charles Wilson Subject: Re: ncurses problem with mvcur function To: "Cygwin Mailing List" 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. >=20 > lines 602-603 are >=A0 =A0 =A0=A0=A0/* this moves curses to bottom right corner */ >=A0 =A0 =A0=A0=A0mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0); >=20 > 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.=A0 Instead of accessing the members of curscr directly, you use accessor functions: =A0 curscr->_cury ---> getcury(curscr) =A0 curscr->_curx ---> getcurx(cursrc) -- Chuck -- Problem reports:=A0 =A0 =A0=A0=A0http://cygwin.com/problems.html FAQ:=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0=A0http://cygwin.com/faq/ Documentation:=A0 =A0 =A0 =A0=A0=A0http://cygwin.com/docs.html Unsubscribe info:=A0 =A0 =A0 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