Add --strip-ansi=auto option

When using `auto`, escape sequences will be stripped unless printing
plain text.
This commit is contained in:
Ethan P. committed 2024-06-17 18:27:33 -07:00
1 parent 70ff93d238
commit 9e8176b1c6
6 files changed
+107 -18

No files matched your search

+1
View File
@@ -154,6 +154,7 @@ pub enum StripAnsiMode {
#[default]
Never,
Always,
Auto,
}
#[test]