minitrino.ansi module#

Strip ANSI escape sequences from strings.

minitrino.ansi.strip_ansi(value: str = '') str[source][source]#

Remove ANSI escape sequences from the given string.

Parameters:

value (str, optional) – Input string possibly containing ANSI escape codes.

Returns:

The cleaned string with ANSI codes removed.

Return type:

str