diff options
author | Joe Wilm <joe@jwilm.com> | 2017-01-01 18:28:49 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2017-01-01 18:28:49 -0800 |
commit | 82bfc41af7d6eff384bdf95cedaf0d62b5450979 (patch) | |
tree | d49059a741b4d751d424f15cf3d33cd8042aaa14 /src/ansi.rs | |
parent | a86dfd1a113f62fb6c40ebf5fe80f30a60cdff99 (diff) | |
download | alacritty-82bfc41af7d6eff384bdf95cedaf0d62b5450979.tar.gz alacritty-82bfc41af7d6eff384bdf95cedaf0d62b5450979.zip |
Add support for SGR mouse reporting
According to:
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking
Diffstat (limited to 'src/ansi.rs')
-rw-r--r-- | src/ansi.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ansi.rs b/src/ansi.rs index 633a7e54..e5c129e3 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -249,6 +249,10 @@ pub enum Mode { ShowCursor = 25, /// ?1000 ReportMouseClicks = 1000, + /// ?1002 + ReportMouseMotion = 1002, + /// ?1006 + SgrMouse = 1006, /// ?1049 SwapScreenAndSetRestoreCursor = 1049, /// ?2004 @@ -267,6 +271,8 @@ impl Mode { 12 => Mode::BlinkingCursor, 25 => Mode::ShowCursor, 1000 => Mode::ReportMouseClicks, + 1002 => Mode::ReportMouseMotion, + 1006 => Mode::SgrMouse, 1049 => Mode::SwapScreenAndSetRestoreCursor, 2004 => Mode::BracketedPaste, _ => return None |