mirror of
https://github.com/ClementTsang/bottom.git
synced 2024-11-09 23:36:24 +03: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!(
|
||||
"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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user