curses default background

Alex Mercader the_cpu_fan at yahoo.com
Sat Jul 14 00:28:27 EDT 2001


I used to be able to use Eterm's (and other X terminals that support
pseudo-transparent backgrounds) background in my C/Ncurses applications.

The C/Ncurses code looks like:

init_pair(COLOR_BLACK, -1, -1)
init_pair(COLOR_WHITE, -1, -1)
init_pair(COLOR_RED, COLOR_RED, -1)
...

Unfortunately, I can not get the same effect in Python/curses. I read
somewhere in the curses-HOWTO that color pair 0 is hardwired to white on
black and can not be redefined. Should I just give up my quest for
transparency? Please help. This thing is driving me insane.

Thanks heaps.

Alex Mercader
the_cpu_fan at yahoo.com



More information about the Python-list mailing list