Colours
Last Updated: v1.5
The terminal can now output text in colour instead of black and white. Very useful for debugging error messages and making a user interface in the terminal.
Format
from PythonFunctions.Colours import Format
from colorama import Style
print(Format.BOLD + "hi" + Style.RESET_ALL) # Prints "hi" in bold.
Translate
- Colours.Translate(string, Form):
Translate a string into a specific format
- Parameters
string (str) – String to Translate
Form (colorama.Form, colorama.Style, Colours.Format) – Colour / Format / Style / Whatever to put on the string
- Return type
str
- Returns
the result
Revert
- Colours.Revert(string):
Revert a string back into the original form
- Parameters
string (str) – String to revert
- Returns
The result (either original or input)
- Return type
str