mirror of
https://github.com/sharkdp/bat
synced 2026-08-10 20:01:45 +00:00
Add --strip-ansi=auto option
When using `auto`, escape sequences will be stripped unless printing plain text.
This commit is contained in:
@@ -250,6 +250,7 @@ impl App {
|
||||
{
|
||||
Some("never") => StripAnsiMode::Never,
|
||||
Some("always") => StripAnsiMode::Always,
|
||||
Some("auto") => StripAnsiMode::Auto,
|
||||
_ => unreachable!("other values for --strip-ansi are not allowed"),
|
||||
},
|
||||
theme: self
|
||||
|
||||
Reference in New Issue
Block a user