Strip ANSI escape sequences from text.
sh
ls --color=always | strip-ansi
sh
strip-ansi "$(ls --color=always)"
sh
strip-ansi --help
Make sure to have cargo
and rustc
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.
sh
cargo install strip-ansi-cli
sh
yay -S strip-ansi
sh
yay -Ss strip-ansi-bin