cosmicfish_pylib.colors.bash_colors¶
-
class
cosmicfish_pylib.colors.bash_colors[source]¶ This class contains the necessary definitions to print to bash screen with colors. Sometimes it can be useful and nice!
Variables: - HEADER – ANSI color for light purple.
- OKBLUE – ANSI color for blue.
- OKGREEN – ANSI color for green.
- WARNING – ANSI color for yellow.
- FAIL – ANSI color for red.
- BOLD – ANSI code for bold text.
- UNDERLINE – ANSI code for underlined text.
- ENDC – ANSI code to restore the bash default.
Methods
__init__()blue(string)Function that returns a string that can be printed to bash in cosmicfish_pylib.colors.bash_colors.OKBLUEcolor.bold(string)Function that returns a string that can be printed to bash in cosmicfish_pylib.colors.bash_colors.BOLDcolor.fail(string)Function that returns a string that can be printed to bash in cosmicfish_pylib.colors.bash_colors.FAILcolor.green(string)Function that returns a string that can be printed to bash in cosmicfish_pylib.colors.bash_colors.OKGREENcolor.header(string)Function that returns a string that can be printed to bash in cosmicfish_pylib.colors.bash_colors.HEADERcolor.underline(string)Function that returns a string that can be printed to bash in cosmicfish_pylib.colors.bash_colors.UNDERLINEcolor.warning(string)Function that returns a string that can be printed to bash in cosmicfish_pylib.colors.bash_colors.WARNINGcolor.Attributes
BOLDANSI code for bold text. ENDCANSI code to restore the bash default. FAILANSI color for red. HEADERANSI color for light purple. OKBLUEANSI color for blue. OKGREENANSI color for green. UNDERLINEANSI code for underlined text. WARNINGANSI color for yellow.