mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:34 +00:00
Adds --columns for Print using custom width #13
This commit is contained in:
1 parent
55cf7b034c
commit
b9348ffb1d
4 files changed
+114
-93
No files matched your search
@@ -16,6 +16,7 @@ fn main() {
|
||||
let show_position_panel = true;
|
||||
let use_squeezing = false;
|
||||
let border_style = BorderStyle::Unicode;
|
||||
let columns = 2;
|
||||
|
||||
let mut printer = Printer::new(
|
||||
&mut handle,
|
||||
@@ -24,6 +25,7 @@ fn main() {
|
||||
show_position_panel,
|
||||
border_style,
|
||||
use_squeezing,
|
||||
columns,
|
||||
);
|
||||
printer.print_all(&input[..]).unwrap();
|
||||
}
|
||||
Reference in new issue
Block a user