aboutsummaryrefslogtreecommitdiff
path: root/src/raw_input.rs
diff options
context:
space:
mode:
authorJJ Liebig <jonathan.liebig@gmail.com>2026-09-11 20:12:49 +0400
committerGitHub <noreply@github.com>2026-09-11 18:12:49 +0200
commitc7a7cc454ac116467ce48365e075eb8ce53e458c (patch)
tree2c31da71c3530cd129d140beac2d680b26c12800 /src/raw_input.rs
parent871ff8b91f969a0d6d7fcd21ad028723a77bac6c (diff)
fix: lint all targets on windows (#3963)
Native Windows lint and check only clippy-checked the herdr binary, while macOS and Linux run clippy across all targets. Enable --all-targets on Windows and gate the Unix-only test helpers that this exposed so Windows check matches the Unix one.
Diffstat (limited to 'src/raw_input.rs')
-rw-r--r--src/raw_input.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/raw_input.rs b/src/raw_input.rs
index 0192366d..e13d9133 100644
--- a/src/raw_input.rs
+++ b/src/raw_input.rs
@@ -19,9 +19,9 @@ use crate::terminal_theme::{
};
const ESC: u8 = 0x1b;
-#[cfg(any(unix, test))]
+#[cfg(unix)]
pub(crate) const RAW_INPUT_IDLE_FLUSH_TIMEOUT_MS: i32 = 10;
-#[cfg(any(unix, test))]
+#[cfg(unix)]
pub(crate) const MOUSE_ACTIVE_ESCAPE_SEQUENCE_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,12 +207,12 @@ impl RawInputByteFramer {
!self.buffer.is_empty()
}
- #[cfg(any(not(windows), test))]
+ #[cfg(unix)]
pub(crate) fn has_pending_lone_escape(&self) -> bool {
self.buffer.as_slice() == [ESC]
}
- #[cfg(any(unix, test))]
+ #[cfg(unix)]
pub(crate) fn has_pending_incomplete_mouse_sequence(&self) -> bool {
starts_with_incomplete_sgr_mouse_sequence(&self.buffer)
|| starts_with_incomplete_default_mouse_sequence(&self.buffer)