Python functions that output styialized input to the terminal
This was tested on: fish
, bash
All functions take 1 parameter text
which is the desired text to be formatted, and return the same value which is the formatted string.
Example:
from colors import red
if __name__ == '__main__':
print(red("This is red text"))
these functions have 9 similar style functions that follow this format (color_style
, ex: red_blinking
).
Styles: bold
, dim
, italic
, underlined
, blinking
, highlighted
, invisible
, linethrough
black
red
green
yellow
blue
magenta
cyan
white