remove special case white/black pair. doesn't seem needed and breaks white,black,attrs

This commit is contained in:
Nick 2011-01-28 17:04:28 +01:00
parent 2f6283ea39
commit ba3a093746
1 changed files with 1 additions and 5 deletions

View File

@ -50,9 +50,7 @@ colors = [
]
# {(fg, bg): pair_number, ...}
color_pairs = {
("white", "black"): 0 # Special case, can't be changed
}
color_pairs = {}
# Some default color schemes
schemes = {
@ -93,8 +91,6 @@ def init_colors():
counter = 1
for fg in colors:
for bg in colors:
if fg == "COLOR_WHITE" and bg == "COLOR_BLACK":
continue
color_pairs[(fg[6:].lower(), bg[6:].lower())] = counter
curses.init_pair(counter, getattr(curses, fg), getattr(curses, bg))
counter += 1