Curses & Colors

Thomas Dickey dickey at saltmine.radix.net
Fri Feb 15 08:07:15 EST 2002


Rafael Mentz Aquino <pythonlist at zumnet.com.br> wrote:

> I'm creating some simple interfaces with curses with python under FreeBSD,
> but I'm having some problems to change colors.  I tried to do something in
> /etc/termcap, but when I run curses.can_change_color(), I always obtain 0. 
> My env term is cons25, but I don't know if python uses the same terminal. 
> I'm running python 2.1.1.  Can anybody help me...?  ;-))

can_change_color() applies to terminals that have the ability to change
the content of a particular color, e.g., making blue slightly brighter.
FreeBSD console doesn't do this.

-- 
Thomas E. Dickey <dickey at radix.net> <dickey at herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com



More information about the Python-list mailing list