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.OKBLUE
color.bold
(string)Function that returns a string that can be printed to bash in cosmicfish_pylib.colors.bash_colors.BOLD
color.fail
(string)Function that returns a string that can be printed to bash in cosmicfish_pylib.colors.bash_colors.FAIL
color.green
(string)Function that returns a string that can be printed to bash in cosmicfish_pylib.colors.bash_colors.OKGREEN
color.header
(string)Function that returns a string that can be printed to bash in cosmicfish_pylib.colors.bash_colors.HEADER
color.underline
(string)Function that returns a string that can be printed to bash in cosmicfish_pylib.colors.bash_colors.UNDERLINE
color.warning
(string)Function that returns a string that can be printed to bash in cosmicfish_pylib.colors.bash_colors.WARNING
color.Attributes
BOLD
ANSI code for bold text. ENDC
ANSI code to restore the bash default. FAIL
ANSI color for red. HEADER
ANSI color for light purple. OKBLUE
ANSI color for blue. OKGREEN
ANSI color for green. UNDERLINE
ANSI code for underlined text. WARNING
ANSI color for yellow.