mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:34 +00:00
added --plain functionality
This commit is contained in:
1 parent
e4f0e8a092
commit
f7f7447994
4 files changed
+219
-82
No files matched your search
+10
-1
@@ -12,9 +12,18 @@ fn main() {
|
||||
let mut handle = stdout.lock();
|
||||
|
||||
let show_color = true;
|
||||
let show_char_table = true;
|
||||
let show_position_indicator = true;
|
||||
let use_squeezing = false;
|
||||
let border_style = BorderStyle::Unicode;
|
||||
|
||||
let mut printer = Printer::new(&mut handle, show_color, border_style, use_squeezing);
|
||||
let mut printer = Printer::new(
|
||||
&mut handle,
|
||||
show_color,
|
||||
show_char_table,
|
||||
show_position_indicator,
|
||||
border_style,
|
||||
use_squeezing,
|
||||
);
|
||||
printer.print_all(&input[..]).unwrap();
|
||||
}
|
||||
Reference in new issue
Block a user