From 822c3b9e2d1edb7481fa558497dd33c7f5dca9ee Mon Sep 17 00:00:00 2001 From: Can Celik Date: Sun, 5 Apr 2026 15:56:05 +0300 Subject: refactor: own pane mouse protocol enums outside vt100 --- src/input/model.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/input/model.rs') 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, +} -- cgit v1.2.3