summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2022-06-29 01:15:37 -0400
committerGitHub <noreply@github.com>2022-06-29 01:15:37 -0400
commit04d1218f659389d0d6ce6bb74a6a869d0fd76084 (patch)
tree64f1f5609694275c0a315a58d42c5941988573b9 /src
parentbaf844244dc35dfe42f248a999a93acdedc93a02 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
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));
}