From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40089 invoked by alias); 11 Jun 2017 14:18:51 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 40070 invoked by uid 89); 11 Jun 2017 14:18:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=5th, wheel, Desktop, 10.3 X-HELO: resqmta-ch2-10v.sys.comcast.net Received: from resqmta-ch2-10v.sys.comcast.net (HELO resqmta-ch2-10v.sys.comcast.net) (69.252.207.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 11 Jun 2017 14:18:41 +0000 Received: from resomta-ch2-13v.sys.comcast.net ([69.252.207.109]) by resqmta-ch2-10v.sys.comcast.net with SMTP id K3h7dF4wZ61D9K3hUdu5l1; Sun, 11 Jun 2017 14:18:44 +0000 Received: from [IPv6:2601:19c:4801:4ac0:215e:73b0:c48:b8d4] ([IPv6:2601:19c:4801:4ac0:215e:73b0:c48:b8d4]) by resomta-ch2-13v.sys.comcast.net with SMTP id K3hTdRIzsAtR2K3hTd9rIf; Sun, 11 Jun 2017 14:18:44 +0000 From: "Richard S. Gordon" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Python 3.6.1 fails to generate 256 colors, with xterm-256color, on Cygwin based 64-bit Windows 10. Message-Id: <86DAFF59-6EA8-4288-9D7D-E3262988BD7C@comcast.net> Date: Sun, 11 Jun 2017 14:18:00 -0000 Cc: Richard Sanders Gordon To: cygwin@cygwin.com X-CMAE-Envelope: MS4wfB2I/GjAUAOJhn6pqp1oOtYsyK2dTIZ6S686NyzWjtbZYcppMKD3xKKDI3q9ALEgqtWq12c/WS7/juFrE+78kgXrHYudf/SmQqWNQ6jQtpOjdEZmhbH+ gNbf/e6WYaNc9kBfoti9Xtuc1GxsKhhTh1tTZoSkEaM88eFKukSOTMCcNXB+1mVLpl5wB8i0vCeUTRt/ystwThz7WD8GZcFffgM/in69HvVvNYmT0xu+S4bf X-SW-Source: 2017-06/txt/msg00118.txt.bz2 NOTES: 1. Python 3.6.1 generates 8 colors (64-color pairs), with xterm, on Cygwin based 32-bit Windows 10 2. Python 3.6.1 generates 16 colors (256-color pairs), with xterm-16color, on Cygwin based 32-bit Windows 10 3. Python 3.6.1 generates 256 colors (65536-color pairs), with xterm-256col= or, on Cygwin based 64-bit Windows 10. However, the generated colors appear = to be corrupted by overloading text attribute with specified foreground and background colors. Fixing this Python 3.6.1 issue will probably require modification to the Python curses 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): a. Extend the cchar_t structure to allow more than 16 colors to be encod= ed. b. Modify the encoding of mouse state to make room for a 5th mouse butto= n. That allows one to use ncurses with a wheel mouse with xterm or simil= ar X terminal emulators. 4. Cygwin problem reporter's 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 includ= es support for Python 3.6.0. It uses the Parallels Desktop 12 for Mac (a hypervisor) to run the following guest operating system: a. Android 4, b. 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) c. Solaris (OpenIndians Hipster 1610) d. Unix (PCDBSD 10.3 & TrueOS 12.0) e. 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 Python 3.4.x or Python 3.5.x with only xterm (8-color). 5. Cygwin problem reporter's suggest fixes: a. The fix to the Python 3.6.1 curses stdlib should only be applied to those 64-bit platform versions used with 64-bit ncurses 6.0. b. The fix 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. 6. Cygwin Problem Reporter's Test Case: This Cygwin problem can be demonstrated by running the Problem Reporter's test_tsWxColorPalette.py in Python 3x (developer-sandbox) which can be found in https://github.com/rigordo959/tsWxGTUI_PyVx_Repository.=20 Richard S. Gordon -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple