summaryrefslogtreecommitdiff
path: root/src/input/model.rs
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-04-05 15:56:05 +0300
committerCan Celik <ogulcancelik@gmail.com>2026-04-05 15:56:05 +0300
commit822c3b9e2d1edb7481fa558497dd33c7f5dca9ee (patch)
treeefeec026c12e5a6f43c9ec0364210f5f6e959801 /src/input/model.rs
parent46c65725036f1778a059f9dbf3939bc3be8c27c4 (diff)
refactor: own pane mouse protocol enums outside vt100
Diffstat (limited to 'src/input/model.rs')
-rw-r--r--src/input/model.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/input/model.rs b/src/input/model.rs
index 31c521e8..9339b965 100644
--- a/src/input/model.rs
+++ b/src/input/model.rs
@@ -55,3 +55,25 @@ impl KeyboardProtocol {
}
}
}
+
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum MouseProtocolMode {
+ None,
+ Press,
+ PressRelease,
+ ButtonMotion,
+ AnyMotion,
+}
+
+impl MouseProtocolMode {
+ pub fn reporting_enabled(self) -> bool {
+ self != Self::None
+ }
+}
+
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum MouseProtocolEncoding {
+ Default,
+ Utf8,
+ Sgr,
+}