mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-22 12:13:06 +00: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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue