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.
This commit is contained in:
Clement Tsang 2022-06-29 01:15:37 -04:00 committed by GitHub
parent baf844244d
commit 04d1218f65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));
}