delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/09/08:51:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
To: cygwin AT cygwin DOT com
From: Chris Shepard <records2010 AT yahoo DOT com>
Subject: curses colors
Date: Mon, 9 Aug 2004 12:41:10 +0000 (UTC)
Lines: 31
Message-ID: <loom.20040809T142822-803@post.gmane.org>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: main.gmane.org
User-Agent: Loom/3.14 (http://gmane.org/)
X-Loom-IP: 12.154.2.100 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax))
X-IsSubscribed: yes

Hi,

I'm running curses from Python in an xterm on XP Pro, and the
colors are, well, let's say, strange:

BLACK (0,0,0) looks yellow
RED (680,0,0) looks red!
GREEN (0,680,0) looks green!
YELLOW (680,680,0) looks brown 
BLUE (0,0,680) looks black
MAGENTA (680,0,680) looks red, also
CYAN (0,680,680) looks green, also 
WHITE (680,680,680) looks black, also

can_change_colors is False (i.e., No, I can't, and I have
tried: init_color() pukes).  Is this the case from C code?  
Question is: is this a glitch/unfeature in the libcurses or some
python thing?  It isn't related to X is it?  (I do NOT have X
installed on my system)

Is there a relatively (i.e., no more than a couple of hours' work)
safe (i.e., will NOT endager my existing Python/curses setup, which
otherwise works wonderfully) fix/patch/mod/hack that I (beaucoup years 
C and *nix, 2 months Windoze) could make? It'd be nice to have all 
eight colors.

Many, many TIA.

Cheers.  :)
 



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019