This commit is contained in:
andy.boot
2025-07-06 10:17:26 +01:00
parent 69ba3adcfc
commit 9957cd3d9c
+6 -4
View File
@@ -352,16 +352,17 @@ fn main() {
match evt { match evt {
Event::Key(Key::Char('q')) => break, Event::Key(Key::Char('q')) => break,
Event::Key(Key::Char(x)) => { Event::Key(Key::Char(x)) => {
// println!("{}key ", x); write!(out,"{x} key\n" );
} }
Event::Key(Key::Left) => { Event::Key(Key::Left) => {
// println!("left "); write!(out,"left\n");
} }
Event::Key(Key::Right) => { Event::Key(Key::Right) => {
// println!("right "); write!(out,"right\n");
} }
_ => {} _ => {}
} }
write!(out, "{}", termion::cursor::Goto(1, 3)).unwrap();
print_output( print_output(
&config, &config,
&options, &options,
@@ -372,6 +373,7 @@ fn main() {
); );
out.flush().unwrap(); out.flush().unwrap();
} }
})
} }
fn print_output( fn print_output(
@@ -394,7 +396,7 @@ fn print_output(
short_paths: !config.get_full_paths(&options), short_paths: !config.get_full_paths(&options),
is_reversed: !config.get_reverse(&options), is_reversed: !config.get_reverse(&options),
colors_on: is_colors, colors_on: is_colors,
by_filecount, by_filecount: options.filecount,
by_filetime: config.get_filetime(&options), by_filetime: config.get_filetime(&options),
is_screen_reader: config.get_screen_reader(&options), is_screen_reader: config.get_screen_reader(&options),
output_format, output_format,