|
Display TTY
1
Customise your terminal's output
|

Static Public Member Functions | |
| str | get_colour_string (colour_class, int colour_code) |
| Union[int, None] | get_colour_code (colour_class, str colour_name) |
| bool | check_if_colour_present (colour_class, str colour_name) |
| list | get_all_colours (colour_class) |
@class LoggerColours @brief Class in charge of containing the colour names and id's that correspond to the allowed colours for the logger library.
Definition at line 40 of file colours.py.
|
static |
@brief Function in charge of checking if the colour is present in the list of allowed colours. @param colour_class The class containing the colour definitions. @param colour_name The name of the colour as a string. @return True if the colour is present, False otherwise.
Definition at line 129 of file colours.py.
|
static |
@brief Function in charge of returning the list of all the colours. @param colour_class The class containing the colour definitions. @return A list of all the colour names as strings.
Definition at line 147 of file colours.py.
|
static |
@brief Function in charge of returning the code of the colour to use. @param colour_class The class containing the colour definitions. @param colour_name The name of the colour as a string. @return The integer code of the colour, or None if the name is invalid.
Definition at line 112 of file colours.py.
|
static |
@brief Function in charge of returning the name of the colour to use. @param colour_class The class containing the colour definitions. @param colour_code The integer code of the colour. @return The name of the colour as a string, or an empty string if the code is invalid.
Definition at line 97 of file colours.py.
|
static |
Definition at line 50 of file colours.py.
|
static |
Definition at line 47 of file colours.py.
|
static |
Definition at line 66 of file colours.py.
|
static |
Definition at line 63 of file colours.py.
|
static |
Definition at line 65 of file colours.py.
|
static |
Definition at line 67 of file colours.py.
|
static |
Definition at line 75 of file colours.py.
|
static |
Definition at line 72 of file colours.py.
|
static |
Definition at line 73 of file colours.py.
|
static |
Definition at line 76 of file colours.py.
|
static |
Definition at line 78 of file colours.py.
|
static |
Definition at line 71 of file colours.py.
|
static |
Definition at line 74 of file colours.py.
|
static |
Definition at line 77 of file colours.py.
|
static |
Definition at line 70 of file colours.py.
|
static |
Definition at line 64 of file colours.py.
|
static |
Definition at line 68 of file colours.py.
|
static |
Definition at line 69 of file colours.py.
|
static |
Definition at line 49 of file colours.py.
|
static |
Definition at line 51 of file colours.py.
|
static |
Definition at line 59 of file colours.py.
|
static |
Definition at line 56 of file colours.py.
|
static |
Definition at line 57 of file colours.py.
|
static |
Definition at line 60 of file colours.py.
|
static |
Definition at line 62 of file colours.py.
|
static |
Definition at line 55 of file colours.py.
|
static |
Definition at line 58 of file colours.py.
|
static |
Definition at line 61 of file colours.py.
|
static |
Definition at line 54 of file colours.py.
|
static |
Definition at line 48 of file colours.py.
|
static |
Definition at line 82 of file colours.py.
|
static |
Definition at line 79 of file colours.py.
|
static |
Definition at line 81 of file colours.py.
|
static |
Definition at line 83 of file colours.py.
|
static |
Definition at line 91 of file colours.py.
|
static |
Definition at line 88 of file colours.py.
|
static |
Definition at line 89 of file colours.py.
|
static |
Definition at line 92 of file colours.py.
|
static |
Definition at line 94 of file colours.py.
|
static |
Definition at line 87 of file colours.py.
|
static |
Definition at line 90 of file colours.py.
|
static |
Definition at line 93 of file colours.py.
|
static |
Definition at line 86 of file colours.py.
|
static |
Definition at line 80 of file colours.py.
|
static |
Definition at line 84 of file colours.py.
|
static |
Definition at line 85 of file colours.py.
|
static |
Definition at line 52 of file colours.py.
|
static |
Definition at line 53 of file colours.py.