CharacterVisual
Module: terminaltexteffects.engine.animation
A class for storing symbol, color, and terminal graphical modes for the character.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
symbol |
str
|
the unformatted symbol |
required |
bold |
bool
|
bold mode |
False
|
dim |
bool
|
dim mode |
False
|
italic |
bool
|
italic mode |
False
|
underline |
bool
|
underline mode |
False
|
blink |
bool
|
blink mode |
False
|
reverse |
bool
|
reverse mode |
False
|
hidden |
bool
|
hidden mode |
False
|
strike |
bool
|
strike mode |
False
|
color |
Color | None
|
color to display the symbol |
None
|
Attributes:
Name | Type | Description |
---|---|---|
formatted_symbol |
str
|
the current symbol with all ANSI sequences applied |
Source code in terminaltexteffects/engine/animation.py
disable_modes()
Disables all graphical modes.
Source code in terminaltexteffects/engine/animation.py
format_symbol()
Formats the symbol for printing by applying ANSI sequences for any active modes and color.