summaryrefslogtreecommitdiff
path: root/src/term/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term/mod.rs')
-rw-r--r--src/term/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 63b0ca80..fc59ffd6 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -34,6 +34,8 @@ use crate::url::UrlParser;
use crate::message_bar::MessageBuffer;
use crate::term::color::Rgb;
use crate::term::cell::{LineLength, Cell};
+
+#[cfg(windows)]
use crate::tty;
pub mod cell;
@@ -1336,7 +1338,7 @@ impl Term {
#[inline]
pub fn should_exit(&self) -> bool {
- tty::process_should_exit() || self.should_exit
+ self.should_exit
}
}