Strip ANSI escape sequences from text.
ls --color=always | strip-ansi
strip-ansi "$(ls --color=always)"
strip-ansi --help
-
Make sure to have
cargo
andrustc
installed. If not, you may install it using rustup. -
Clone this repository.
-
Run
cargo build --release --locked
in the repo root. -
The binary should be created at
$REPO_DIR/target/release/strip-ansi
.
Go to the Release Page and find file whose name contains strip-ansi
and your platform name.
From Crates.io
cargo install strip-ansi-cli
From the Arch User Repository
yay -S strip-ansi
yay -Ss strip-ansi-bin