class Style - GabrielSCabrera/Termighty GitHub Wiki
Summary
For storing, accessing, and modifying text style data. Is instantiated with any combination of the following text styles:
Style | Effect |
---|---|
bold | Bold (thicker) text |
faint | Fainter text |
italic | Italic (askew) text |
underline | Underlined text |
blink | Blinking text |
reverse | Text & background colors switch |
crossed out | Text is crossed out |
overlined | Overlined text |
Examples
Here is an example of the style bold being created.
>>> from Termighty import Style
>>> style = Style('bold')
>>> print(style)
STYLES bold
SAMPLE Aa Zz 0123
Styles can be combined in any way
>>> style = Style('bold', 'italic')
>>> print(style)
STYLES bold italic
SAMPLE Aa Zz 0123