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


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

patch #6920: Patch for ncurses use

Submitted by:  Wim Lewis <wiml>
Submitted on:  Fri Sep 18 00:19:21 2009  
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Fri Sep 18 00:19:21 2009, 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 (1kB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Sep 18 00:19:21 2009wimlAttached File-=>Added scm-getmaxyx.patch, #18730

    Back to the top

    Powered by Savane 3.1-cleanup1