aboutsummaryrefslogtreecommitdiff
path: root/src/ansi.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-11-28 14:39:37 -0800
committerJoe Wilm <joe@jwilm.com>2016-12-11 20:23:41 -0800
commitff5081d5e5cd2ddcf775357853b81afbcf45aef4 (patch)
tree3deec43af92f64e41cdd96f9137e25c0ea38c10b /src/ansi.rs
parent7bf3d059c39c0b8e4529db6f7d84a1e1997738e8 (diff)
downloadalacritty-ff5081d5e5cd2ddcf775357853b81afbcf45aef4.tar.gz
alacritty-ff5081d5e5cd2ddcf775357853b81afbcf45aef4.zip
Add support for bracketed paste
Binding/Action execute now has access to TermMode to support bracketed paste mode.
Diffstat (limited to 'src/ansi.rs')
-rw-r--r--src/ansi.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ansi.rs b/src/ansi.rs
index c9341620..32c7751d 100644
--- a/src/ansi.rs
+++ b/src/ansi.rs
@@ -243,6 +243,8 @@ pub enum Mode {
ReportMouseClicks = 1000,
/// ?1049
SwapScreenAndSetRestoreCursor = 1049,
+ /// ?2004
+ BracketedPaste = 2004,
}
impl Mode {
@@ -258,6 +260,7 @@ impl Mode {
25 => Mode::ShowCursor,
1000 => Mode::ReportMouseClicks,
1049 => Mode::SwapScreenAndSetRestoreCursor,
+ 2004 => Mode::BracketedPaste,
_ => return None
})
} else {