| delorie.com/archives/browse.cgi | search |
| 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 <cop3252 AT yahoo DOT com> |
| Subject: | Re: ncurses problem with mvcur function |
| To: | Cygwin Mailing List <cygwin AT cygwin DOT com>, |
| Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> | |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
| 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 |
Hello Charles
Thank you, the old game now compiles OK.
Joe
--- On Wed, 5/19/10, Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> wrote:
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
Subject: Re: ncurses problem with mvcur function
To: "Cygwin Mailing List" <cygwin AT cygwin DOT 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.
>=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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |