lsst.pex.config
13.0-4-gbcd7061+13
|
Public Member Functions | |
def | __init__ (self, text, category) |
def | __str__ (self) |
Static Public Member Functions | |
def | colorize (val=None) |
Public Attributes | |
rawText | |
Static Public Attributes | |
categories | |
dictionary | colors |
Control whether strings should be coloured The usual usage is `Color(string, category)` which returns a string that may be printed; categories are given by the keys of Color.categories Color.colorize() may be used to set or retrieve whether the user wants colour; it always returns False when sys.stdout is not attached to a terminal.
Definition at line 33 of file history.py.
def lsst.pex.config.history.Color.__init__ | ( | self, | |
text, | |||
category | |||
) |
Return a string that should display as coloured on a conformant terminal
Definition at line 65 of file history.py.
def lsst.pex.config.history.Color.__str__ | ( | self | ) |
Definition at line 117 of file history.py.
|
static |
Should I colour strings? With an argument, set the value The value is usually a bool, but it may be a dict which is used to modify Color.categories N.b. only strings written to a terminal are colourized
Definition at line 89 of file history.py.
|
static |
Definition at line 44 of file history.py.
|
static |
Definition at line 52 of file history.py.
lsst.pex.config.history.Color.rawText |
Definition at line 72 of file history.py.