From 04d1218f659389d0d6ce6bb74a6a869d0fd76084 Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Wed, 29 Jun 2022 01:15:37 -0400 Subject: [PATCH] feature: add note on how to exit if running in non-terminal (#761) Addition to #760, adds an extra message so users know how to exit in this scenario. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 6befaf15..c7bdfb6c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -282,6 +282,7 @@ pub fn check_if_terminal() { eprintln!( "Warning: bottom is not being output to a terminal. Things might not work properly." ); + eprintln!("If you're stuck, press 'q' or 'Ctrl-c' to quit the program."); stderr().flush().unwrap(); thread::sleep(Duration::from_secs(1)); }