diff options
author | Joe Wilm <joe@jwilm.com> | 2016-11-23 20:25:37 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-12-11 20:23:41 -0800 |
commit | 90e0a759e8e55952ada459914f9958d50eab04fe (patch) | |
tree | 58fde9affe7e8516481d5983afd9186f620e6ffa /src/ansi.rs | |
parent | b6c372ab4800b8dbc9e3efb042e369c9980c607a (diff) | |
download | alacritty-90e0a759e8e55952ada459914f9958d50eab04fe.tar.gz alacritty-90e0a759e8e55952ada459914f9958d50eab04fe.zip |
Support normal mouse tracking mode
This allows the user for eg clicking columnts in htop to sort.
Diffstat (limited to 'src/ansi.rs')
-rw-r--r-- | src/ansi.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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 }) |