aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/ansi.rs
diff options
context:
space:
mode:
authorAleksey Kuznetsov <zummenix@gmail.com>2019-10-16 00:13:58 +0500
committerChristian Duerr <contact@christianduerr.com>2019-10-15 21:13:58 +0200
commit49380bffd24203f139dc32c7bdc9958e64d9dd4d (patch)
tree0d4bfb3cb7f66868983a6ed5a22695749502995f /alacritty_terminal/src/ansi.rs
parent124e98e94e66d5790d4523adb9cd75f85a4691f4 (diff)
downloadalacritty-49380bffd24203f139dc32c7bdc9958e64d9dd4d.tar.gz
alacritty-49380bffd24203f139dc32c7bdc9958e64d9dd4d.zip
Add support for alternate scroll escape
Fixes #2727.
Diffstat (limited to 'alacritty_terminal/src/ansi.rs')
-rw-r--r--alacritty_terminal/src/ansi.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/alacritty_terminal/src/ansi.rs b/alacritty_terminal/src/ansi.rs
index 493b02aa..d989b78e 100644
--- a/alacritty_terminal/src/ansi.rs
+++ b/alacritty_terminal/src/ansi.rs
@@ -408,6 +408,8 @@ pub enum Mode {
ReportFocusInOut = 1004,
/// ?1006
SgrMouse = 1006,
+ /// ?1007
+ AlternateScroll = 1007,
/// ?1049
SwapScreenAndSetRestoreCursor = 1049,
/// ?2004
@@ -438,6 +440,7 @@ impl Mode {
1003 => Mode::ReportAllMouseMotion,
1004 => Mode::ReportFocusInOut,
1006 => Mode::SgrMouse,
+ 1007 => Mode::AlternateScroll,
1049 => Mode::SwapScreenAndSetRestoreCursor,
2004 => Mode::BracketedPaste,
_ => {