aboutsummaryrefslogtreecommitdiff
path: root/src/raw_input.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-07-03 04:02:45 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-07-03 04:02:45 +0300
commitef67a97047c92e4af6b9d69c7292962426109bc1 (patch)
treeaded9085e3a21c44b975a9f871a36d87321b7626 /src/raw_input.rs
parentaa0768b734d95a1f54df1719290d977df796068d (diff)
perf(linux): cache foreground process group scans
refs #936
Diffstat (limited to 'src/raw_input.rs')
-rw-r--r--src/raw_input.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/raw_input.rs b/src/raw_input.rs
index 284761c6..3bf8cae9 100644
--- a/src/raw_input.rs
+++ b/src/raw_input.rs
@@ -101,6 +101,7 @@ use crate::terminal_theme::{
const ESC: u8 = 0x1b;
pub(crate) const RAW_INPUT_IDLE_FLUSH_TIMEOUT_MS: i32 = 10;
+#[cfg(any(not(windows), test))]
pub(crate) const MOUSE_ACTIVE_LONE_ESCAPE_FLUSH_TIMEOUT_MS: i32 = 150;
pub(crate) const GHOSTTY_COLOR_SCHEME_DARK_REPORT: &[u8] = b"\x1b[?997;1n";
pub(crate) const GHOSTTY_COLOR_SCHEME_LIGHT_REPORT: &[u8] = b"\x1b[?997;2n";
@@ -207,6 +208,7 @@ impl RawInputByteFramer {
!self.buffer.is_empty()
}
+ #[cfg(any(not(windows), test))]
pub(crate) fn has_pending_lone_escape(&self) -> bool {
self.buffer.as_slice() == [ESC]
}