Functions
make_terminal_filters
3
dict[str, Any]
▼
Build terminal filter dict with closures bound to capability flags.
make_terminal_filters
3
dict[str, Any]
▼
def make_terminal_filters(color: bool = True, unicode: bool = True, color_depth: str | None = None) -> dict[str, Any]
Parameters
| Name | Type | Description |
|---|---|---|
color |
bool |
Whether ANSI color codes should be emitted. Default:True
|
unicode |
bool |
Whether Unicode box-drawing / icon characters are available. Default:True
|
color_depth |
str | None |
Terminal color depth: None
|
Returns
dict[str, Any]