diff options
author | Joe Wilm <joe@jwilm.com> | 2016-11-28 14:39:37 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-12-11 20:23:41 -0800 |
commit | ff5081d5e5cd2ddcf775357853b81afbcf45aef4 (patch) | |
tree | 3deec43af92f64e41cdd96f9137e25c0ea38c10b /src/term/mod.rs | |
parent | 7bf3d059c39c0b8e4529db6f7d84a1e1997738e8 (diff) | |
download | r-alacritty-ff5081d5e5cd2ddcf775357853b81afbcf45aef4.tar.gz r-alacritty-ff5081d5e5cd2ddcf775357853b81afbcf45aef4.tar.bz2 r-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/term/mod.rs')
-rw-r--r-- | src/term/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index b5ccb244..acbb70ac 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -164,6 +164,7 @@ pub mod mode { const APP_CURSOR = 0b00000010, const APP_KEYPAD = 0b00000100, const MOUSE_REPORT_CLICK = 0b00001000, + const BRACKETED_PASTE = 0b00010000, const ANY = 0b11111111, const NONE = 0b00000000, } @@ -838,6 +839,7 @@ impl ansi::Handler for Term { ansi::Mode::ShowCursor => self.mode.insert(mode::SHOW_CURSOR), ansi::Mode::CursorKeys => self.mode.insert(mode::APP_CURSOR), ansi::Mode::ReportMouseClicks => self.mode.insert(mode::MOUSE_REPORT_CLICK), + ansi::Mode::BracketedPaste => self.mode.insert(mode::BRACKETED_PASTE), _ => { debug_println!(".. ignoring set_mode"); } @@ -852,6 +854,7 @@ impl ansi::Handler for Term { ansi::Mode::ShowCursor => self.mode.remove(mode::SHOW_CURSOR), ansi::Mode::CursorKeys => self.mode.remove(mode::APP_CURSOR), ansi::Mode::ReportMouseClicks => self.mode.remove(mode::MOUSE_REPORT_CLICK), + ansi::Mode::BracketedPaste => self.mode.remove(mode::BRACKETED_PASTE), _ => { debug_println!(".. ignoring unset_mode"); } |