diff options
author | Aaron Hill <aa1ronham@gmail.com> | 2017-05-29 12:51:49 -0400 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-05-29 09:51:49 -0700 |
commit | 0321f3dcfb576763625a74392332e627ad5ece1b (patch) | |
tree | 1452c8d90e838173fea99a764665d0f494b36b40 /src/ansi.rs | |
parent | 81116fb8a4f91f28b5751827e7bcda22f6fcbaf0 (diff) | |
download | alacritty-0321f3dcfb576763625a74392332e627ad5ece1b.tar.gz alacritty-0321f3dcfb576763625a74392332e627ad5ece1b.zip |
Implement FocusIn/FocusOut reports (#589)
Implements sending FocusIn/FocusOut events, as defined at
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-FocusIn_FocusOut
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 a2adcf90..cca8fe28 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -302,6 +302,8 @@ pub enum Mode { ReportMouseClicks = 1000, /// ?1002 ReportMouseMotion = 1002, + /// ?1004 + ReportFocusInOut = 1004, /// ?1006 SgrMouse = 1006, /// ?1049 @@ -325,6 +327,7 @@ impl Mode { 25 => Mode::ShowCursor, 1000 => Mode::ReportMouseClicks, 1002 => Mode::ReportMouseMotion, + 1004 => Mode::ReportFocusInOut, 1006 => Mode::SgrMouse, 1049 => Mode::SwapScreenAndSetRestoreCursor, 2004 => Mode::BracketedPaste, |