1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-24 17:13:19 +00:00

Add --strip-ansi=auto option

When using `auto`, escape sequences will be stripped unless printing
plain text.
This commit is contained in:
Ethan P.
2024-06-10 21:17:28 -07:00
parent 70ff93d238
commit 9e8176b1c6
6 changed files with 107 additions and 18 deletions
+1
View File
@@ -154,6 +154,7 @@ pub enum StripAnsiMode {
#[default]
Never,
Always,
Auto,
}
#[test]