euporie.core.ft.ansi

Contain ANSI formatted text parser.

Classes

ANSI(value[, tab_size])

Convert ANSI text into formatted text, preserving all control sequences.

PTANSI

alias of ANSI

class euporie.core.ft.ansi.ANSI(value: str, tab_size: int = 8)

Bases: ANSI

Convert ANSI text into formatted text, preserving all control sequences.

format(*args: str, **kwargs: str) ANSI

Like str.format, but make sure that the arguments are properly escaped. (No ANSI escapes can be injected.)