From 90e0a759e8e55952ada459914f9958d50eab04fe Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Wed, 23 Nov 2016 20:25:37 -0800 Subject: Support normal mouse tracking mode This allows the user for eg clicking columnts in htop to sort. --- src/ansi.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ansi.rs') diff --git a/src/ansi.rs b/src/ansi.rs index eaa34430..c9341620 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -239,6 +239,8 @@ pub enum Mode { BlinkingCursor = 12, /// ?25 ShowCursor = 25, + /// ?1000 + ReportMouseClicks = 1000, /// ?1049 SwapScreenAndSetRestoreCursor = 1049, } @@ -254,6 +256,7 @@ impl Mode { 6 => Mode::Origin, 12 => Mode::BlinkingCursor, 25 => Mode::ShowCursor, + 1000 => Mode::ReportMouseClicks, 1049 => Mode::SwapScreenAndSetRestoreCursor, _ => return None }) -- cgit v1.2.3-54-g00ecf