ranger.gui.color
index
/home/hut/ranger/ranger/gui/color.py

Contains abbreviations to curses color/attribute constants.
 
Multiple attributes can be combined with the | (or) operator, toggled
with ^ (xor) and checked for with & (and). Examples:
 
attr = bold | underline
attr |= reverse
bool(attr & reverse) # => True
attr ^= reverse
bool(attr & reverse) # => False

 
Modules
       
curses

 
Functions
       
get_color(fg, bg)
Returns the curses color pair for the given fg/bg combination.
remove_attr(integer, attr)
Remove an attribute from an integer

 
Data
        COLOR_PAIRS = {10: 0}
black = 0
blue = 4
bold = 2097152
cyan = 6
default = -1
default_colors = (-1, -1, 0)
green = 2
invisible = 8388608
magenta = 5
normal = 0
red = 1
reverse = 262144
underline = 131072
white = 7
yellow = 3