#转义 #ANSI #CLI #strip-ansi

应用 ansi-stripper

从标准输入中删除 ANSI 转义序列并将其结果写入标准输出

1 个不稳定版本

0.1.0 2022 年 5 月 1 日

#5#strip-ansi

GPL-3.0 许可协议

16KB
80

ansi-stripper

ansi-stripper 是一个最小化的命令行工具,用于从标准输入中删除 ANSI 转义序列并将其结果写入标准输出。

安装

cargo install ansi-stripper

用法

ansi-stripper 旨在与其他 Unix 工具一起使用,而不是单独使用。

ansi-stripper < text-with-escapes.txt > stripped-text.txt

贡献和报告错误

发送补丁和错误报告可以通过 https://lists.sr.ht/~kchibisov/public-inbox 完成

依赖关系

~230KB