mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-23 05:34:57 +02:00
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:
parent
baf844244d
commit
04d1218f65
@ -282,6 +282,7 @@ pub fn check_if_terminal() {
|
|||||||
eprintln!(
|
eprintln!(
|
||||||
"Warning: bottom is not being output to a terminal. Things might not work properly."
|
"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();
|
stderr().flush().unwrap();
|
||||||
thread::sleep(Duration::from_secs(1));
|
thread::sleep(Duration::from_secs(1));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user