diff --git a/src/exec.rs b/src/exec.rs index 8af447b..2f3a9d2 100644 --- a/src/exec.rs +++ b/src/exec.rs @@ -84,13 +84,12 @@ pub fn tty_readable() -> bool { .is_ok() } - struct AsyncTTY { rx: std::sync::mpsc::Receiver, } impl AsyncTTY { - /// Use an async timeout to read data from the file, and send to the "main" thread + /// Use an async timeout to read data from the file, and send to the "main" thread async fn read_loop(mut f: File, tx: Sender) { loop { let mut buf = [0]; diff --git a/src/ui/draw_blocks.rs b/src/ui/draw_blocks.rs index 002c6ef..ce4188a 100644 --- a/src/ui/draw_blocks.rs +++ b/src/ui/draw_blocks.rs @@ -705,6 +705,11 @@ impl HelpInfo { button_item("1 - 9"), button_desc("sort by header - or click header"), ]), + Line::from(vec![ + space(), + button_item("esc"), + button_desc("close dialog"), + ]), Line::from(vec![ space(), button_item("q"),