[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
Sun Jun 11 07:21:12 EDT 2017


Richard S. Gordon added the comment:

Clarification:
The suggested fix to the Python 3.6.1 curses stdlib should only be applied to those 64-bit platform version used with 64-bit ncurses 6.0.
It should NOT apply to the Python 3.6.1 curses stdlib applied to those 32-bit platforms used with 32-bit ncurses 6.0, because the 32-bit ncurses 6.0 API is backwards compatible to the 32-bit ncurses 5.x API.

> On Jun 11, 2017, at 6:39 AM, Richard S. Gordon <report at bugs.python.org <mailto:report at bugs.python.org>> wrote:
> 
> 
> Richard S. Gordon added the comment:
> 
>> On Jun 10, 2017, at 4:28 AM, Richard S. Gordon <rigordo at comcast.net <mailto:rigordo at comcast.net>> wrote:
>> 
>> 
>>> On Jun 9, 2017, at 4:59 PM, Richard S. Gordon <report at bugs.python.org <mailto:report at bugs.python.org> <mailto:report at bugs.python.org <mailto:report at bugs.python.org>>> wrote:
>>> 
>>> 
>>> Richard S. Gordon added the comment:
>>> 
>>>> On Jun 9, 2017, at 4:41 PM, STINNER Victor <report at bugs.python.org <mailto:report at bugs.python.org> <mailto:report at bugs.python.org <mailto:report at bugs.python.org>>> wrote:
>>>> 
>>>> 
>>>> STINNER Victor added the comment:
>>>> 
>>>> Cygwin is not currently supported by CPython, so I suggest to close this
>>>> issue. I mean: please report the issue to Cygwin, not CPython.
>>>> 
>>>> ----------
>>>> 
>>>> _______________________________________
>>>> Python tracker <report at bugs.python.org <mailto:report at bugs.python.org> <mailto:report at bugs.python.org <mailto:report at bugs.python.org>>>
>>>> <http://bugs.python.org/issue30609 <http://bugs.python.org/issue30609> <http://bugs.python.org/issue30609 <http://bugs.python.org/issue30609>>>
>>>> _______________________________________
>>> 
>>> Before you close this issue, answer how do you explain my success in running my wxPython emulation on all Cygwin releases since 2007 (Python 2.6.8) to 2017 (2.7.13 and Python 3.0-3.5.2 and 3.6.0-3.6.2)?
>>> 
>>> Richard S. Gordon
>>> 
>>> ----------
>>> 
>>> _______________________________________
>>> Python tracker <report at bugs.python.org <mailto:report at bugs.python.org> <mailto:report at bugs.python.org <mailto:report at bugs.python.org>>>
>>> <http://bugs.python.org/issue30609 <http://bugs.python.org/issue30609> <http://bugs.python.org/issue30609 <http://bugs.python.org/issue30609>>>
>>> _______________________________________
>> 
>> FYI:
>> 
>> My current test platform is a 27” iMAC (with 3.5 GHz Intel Core i7, 16 GB 1600 MHz DDR3) running Mac OS 10.12.5 (Sierra). It includes support for Python 3.6.0. It uses the Parallels Desktop 12 for Mac (a hypervisor) to run the following guest operating system:
>> Android 4,
>> Linux (CentOS 7.2 & 7.3, Debian 8.7 & 8.8, Fedora 24 &25, OpenSUSE 13.2, Scientific 7.2 & 7.3, Ubuntu 16.04 & 17.04)
>> Solaris (OpenIndians Hipster 1610)
>> Unix (PCDBSD 10.3 & TrueOS 12.0)
>> Windows (10 32-bit, 10 64-bit) (NOTE: previously ran 32-bit XP, 7 and 8.1)
>> Only Windows 10, with Cygwin, includes support for Python 3.6.1 and support for xterm, xterm-16color and xterm-256olor. The other Guest Operating Systems typically support 3.4.x or 3.5.x with xterm (8-color).
>> 
>> Richard S. Gordon
> 
> Fixing this Python 3.6.1 issue will probably require modification to the Python curse stdlib. Here is the ncurses 6.0 author’s description of the notable changes that he made
> to ncurses 5.x in order to produce ncurses 6.0 (excerpted from: http://invisible-island.net/ncurses/announce.html <http://invisible-island.net/ncurses/announce.html>):
> Extend the cchar_t structure to allow more than 16 colors to be encoded.
> Modify the encoding of mouse state to make room for a 5th mouse button. That allows one to use ncurses with a wheel mouse with xterm or similar X terminal emulators.
> Richard S. Gordon
> 
> ----------
> 
> _______________________________________
> Python tracker <report at bugs.python.org <mailto:report at bugs.python.org>>
> <http://bugs.python.org/issue30609 <http://bugs.python.org/issue30609>>
> _______________________________________

----------

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


More information about the Python-bugs-list mailing list