mirror of
https://github.com/sharkdp/bat
synced 2024-11-08 19:10:41 +00:00
8f99a78cf1
When the new flag is set, non-printable characters are printed using caret notation.
13 lines
333 B
Rust
13 lines
333 B
Rust
/// How to print non-printable characters with
|
|
/// [crate::config::Config::show_nonprintable]
|
|
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
|
|
#[non_exhaustive]
|
|
pub enum NonprintableNotation {
|
|
/// Use caret notation (^G, ^J, ^@, ..)
|
|
Caret,
|
|
|
|
/// Use unicode notation (␇, ␊, ␀, ..)
|
|
#[default]
|
|
Unicode,
|
|
}
|