Skip to main content

Module ansi_parser

Module ansi_parser 

Source
Expand description

ANSI escape sequence parser and utilities

Re-exports from vtcode-commons for consistent behavior with vtcode-core.

Functionsยง

contains_unicode
Detect if text contains unicode characters that need special handling
parse_ansi_sequence
Parse and determine the length of the ANSI escape sequence at the start of text
strip_ansi
Strip ANSI escape codes from text, keeping only plain text
strip_ansi_ascii_only
Fast ASCII-only ANSI stripping for performance-critical paths
strip_ansi_bytes
Strip ANSI escape codes from arbitrary bytes, preserving non-control bytes.