remove special case white/black pair. doesn't seem needed and breaks white,black,attrs
This commit is contained in:
parent
2f6283ea39
commit
ba3a093746
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue