Filter
ANSIToTruecolor
class
¶
Bases: LineFilter
Convert ANSI colors to their truecolor equivalents.
Parameters
Name | Type | Description | Default |
---|---|---|---|
terminal_theme |
TerminalTheme
|
A rich terminal theme. |
required |
apply
method
¶
DimFilter
class
¶
Bases: LineFilter
Replace dim attributes with modified colors.
Parameters
Name | Type | Description | Default |
---|---|---|---|
dim_factor |
float
|
The factor to dim by; 0 is 100% background (i.e. invisible), 1.0 is no change. |
0.5
|
Monochrome
class
¶
Bases: LineFilter
Convert all colors to monochrome.