Are there any plans to support nCurses 6.0 with Python?

eclectic959 at gmail.com eclectic959 at gmail.com
Thu Dec 3 12:11:46 EST 2015


On Thursday, December 3, 2015 at 8:44:30 AM UTC-5, Mark Lawrence wrote:
> On 03/12/2015 12:30, eclectic959 at gmail.com wrote:
> > The GNU Project has announced the release of nCurses 6.0.
> >
> > With it, Python curses would be able to support 256 colors instead of the current 8 or 16.
> >
> > I've discovered that a pre-release of Fedora 24 includes ncurses 6.0. It is not usable by Python programs, such as my character-mode emulation of pixel-mode WxPython (available as "tsWxGTUI_PyVx" on GitHub) which creates a 71 color palette but will not work (its has been disabled) with the existing 16-color curses because text attributes (such as underline) partially overlay the foreground-background color-pair attributes.
> >
> 
> Work is all ready being done to support building Python with ncurses6, 
> see https://bugs.python.org/issue25720.  Whether this alone meets your 
> needs or an enhancement request on the bug tracker against 3.6 is 
> required I'm really not qualified to say.
> 
> -- 
> My fellow Pythonistas, ask not what our language can do for you, ask
> what you can do for our language.
> 
> Mark Lawrence

ncurses6 provides both an application binary interface for ncurses6.0 an one for ncurses5.0. Perhaps it will take an enhancement request to adopt the ABI 6.0 that su[prts 256 colors.



More information about the Python-list mailing list