patchSCM Scheme Implementation - Patches: patch #6920, Patch for ncurses use


You are not allowed to post comments on this tracker with your current authentication level.

patch #6920: Patch for ncurses use

Submitted by:  Wim Lewis <wiml>
Submitted on:  Fri 18 Sep 2009 12:19:21 AM UTC  
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Fri 18 Sep 2009 12:19:21 AM UTC, original submission:  

The ncurses on MacOSX 10.6 doesn't expose the _maxx and _maxy members of the WINDOW structure; instead it suggests using the getmaxyx macro. The attached match makes crs.c use getmaxyx() instead of reading _maxy and _maxx. From the curs_getyx(3) man page:


The getyx, getparyx, getbegyx and getmaxyx macros are described in  the XSI Curses standard, Issue 4.

Although X/Open Curses does not address this, many implementations provide members of the WINDOW structure containing values corresponding to these  macros. For best portability, do not rely on using the data in WINDOW, since some implementations make WINDOW  opaque  (do  not  allow direct use of its members).

(end quote)

I have tested this change by running split.scm; it worked for me.

Wim Lewis <wiml>


Attached Files
file #18730:  scm-getmaxyx.patch added by wiml (1KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by wiml (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-09-18 wiml Attached File- => Added scm-getmaxyx.patch, #18730

    Back to the top

    Powered by Savane 3.7