added --plain functionality

This commit is contained in:
Mikhail Katychev authored and David Peter committed 2022-05-22 21:34:26 +02:00
1 parent e4f0e8a092
commit f7f7447994
4 files changed
+219 -82

No files matched your search

+10 -1
View File
@@ -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();
}