[issue30609] Python 3.6.1 fails to generate 256 colors on Cygwin based 64-bit Windows 10

Richard S. Gordon report at bugs.python.org
Fri Jun 9 12:24:13 EDT 2017


Richard S. Gordon added the comment:

> On Jun 9, 2017, at 11:59 AM, Richard S. Gordon <rigordo at comcast.net> wrote:
> 
> 
>> On Jun 9, 2017, at 11:16 AM, STINNER Victor <report at bugs.python.org> wrote:
>> 
>> 
>> STINNER Victor added the comment:
>> 
>>> Generated colors appear to be corrupted by overloading text attribute with specified foreground and background colors.
>> 
>> Python doesn't contain anything in its stdlib to control the color of the terminal. Are you sure that you posted your bug report at the right place?
>> 
>> ----------
>> nosy: +haypo
>> 
>> _______________________________________
>> Python tracker <report at bugs.python.org>
>> <http://bugs.python.org/issue30609>
>> _______________________________________
> 
> My application, emulates the high level wxPython API, using the standard Python curses package. It uses such curses API methods as window.attron(text attribute) and window.attroff(text attribute). Now that ncurses 6.0 has been released, it supports 64-bit processors and 256+colors. Python 3.6.1 should have been updated to support the new ncurses 64-bit API. It does not seem to have been updated. With the ncurses5.x 32-bit API, the Python 2x and 3x curses modules supported up to 16 colors and up to 64 color pairs. The updated curses packages should support at least 256 colors and at least 65536 color pairs.
> 
> Richard S. Gordon

I neglected to state that ncurses 6.0 changed certain c/c++ data types to support the additional data bits needed to support more colors. The Python curses stdlib needs to reflect the new c/c++ ncurses data types.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30609>
_______________________________________


More information about the Python-bugs-list mailing list