delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:from:content-type:content-transfer-encoding | |
:mime-version:subject:message-id:date:cc:to; q=dns; s=default; b= | |
uYCdTFXs/TI0+adzJHpsC6oFs9Difd4PosnG56REbvoEIV0R0+U224w/lCcFvWfn | |
b5SDDBwaOkS5O9R1HdnQZKZbqEBAjX8rlizB+y4ydEpKWcJPgckfJZUVRJnFedGO | |
7Lv6Y4U1KyefUbgOjRkxpHh2bxK9I+yWg/Os/Q1FL8w= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:from:content-type:content-transfer-encoding | |
:mime-version:subject:message-id:date:cc:to; s=default; bh=dTEt8 | |
NiSy1waEG4wCnAc0UoloEI=; b=HAC3K4yZrQeUl2YwgWL8ptsSueRP00XZLCDMs | |
PrZoevYJhq88KjsbwORS00KwpHlWFXyBQ2DLpDjD0tZEB/Thsf5EYUU62jrJZuub | |
xxOUThXq7/L4oU8jRZBWjIyQNS4WJ4xnFfqUThCBc34kCkMwFzLe/7pfbCGk+7AW | |
xRR+Fs= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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 |
From: | "Richard S. Gordon" <rigordo AT comcast DOT net> |
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 10:18:42 -0400 |
Cc: | Richard Sanders Gordon <rigordo AT comcast DOT net> |
To: | cygwin AT cygwin DOT com |
X-CMAE-Envelope: | MS4wfB2I/GjAUAOJhn6pqp1oOtYsyK2dTIZ6S686NyzWjtbZYcppMKD3xKKDI3q9ALEgqtWq12c/WS7/juFrE+78kgXrHYudf/SmQqWNQ6jQtpOjdEZmhbH+ gNbf/e6WYaNc9kBfoti9Xtuc1GxsKhhTh1tTZoSkEaM88eFKukSOTMCcNXB+1mVLpl5wB8i0vCeUTRt/ystwThz7WD8GZcFffgM/in69HvVvNYmT0xu+S4bf |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id v5BEJAtV008143 |
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-256color, 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 encoded. b. 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. 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 includes 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. 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |