Implemented the pause in tmux in a different way
This commit is contained in:
@@ -139,6 +139,11 @@ impl Terminal {
|
||||
|
||||
answer
|
||||
}
|
||||
|
||||
fn pause(&self) -> Result<(), io::Error> {
|
||||
self.term.read_char()?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Terminal {
|
||||
@@ -169,3 +174,7 @@ pub fn print_result<P: AsRef<str>>(key: P, succeeded: bool) {
|
||||
pub fn is_dumb() -> bool {
|
||||
TERMINAL.lock().unwrap().width.is_none()
|
||||
}
|
||||
|
||||
pub fn pause() {
|
||||
TERMINAL.lock().unwrap().pause().unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user