Skip to main content

Module ansi

Module ansi 

Source
Expand description

ANSI escape handling.

Credits: adapted from rtk (Rust Token Killer) — rtk/src/core/utils.rs. MIT © Patrick Szymkowiak. See LICENSE.

Functions§

strip_ansi
truncate
Unicode-safe char truncation — keeps at most max_len chars, appends ... when the input is longer.