From 1cc79222c23fc624cfa53e2ada0b61aad618b9d9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 9 Feb 2020 12:50:17 -0500 Subject: bump vte version --- CHANGELOG.md | 6 ++++++ Cargo.toml | 2 +- src/screen.rs | 18 ++++++++++++------ 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65d9ebc..8e7f285 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [0.8.1] - Unreleased + +### Changed + +* Bumped `vte` dep to 0.6. + ## [0.8.0] - 2019-12-07 ### Removed diff --git a/Cargo.toml b/Cargo.toml index c30bddc..ac6cd5a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ itoa = "0.4" enumset = "0.4" log = "0.4" unicode-width = "0.1" -vte = "0.3" +vte = "0.6" [dev-dependencies] quickcheck = "0.9" diff --git a/src/screen.rs b/src/screen.rs index c72f1dd..af85277 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -1218,7 +1218,7 @@ impl vte::Perform for Screen { } } - fn osc_dispatch(&mut self, params: &[&[u8]]) { + fn osc_dispatch(&mut self, params: &[&[u8]], _bel_terminated: bool) { match (params.get(0), params.get(1)) { (Some(&b"0"), Some(s)) => self.osc0(s), (Some(&b"1"), Some(s)) => self.osc1(s), @@ -1234,19 +1234,25 @@ impl vte::Perform for Screen { } } - fn hook(&mut self, params: &[i64], intermediates: &[u8], _ignore: bool) { + fn hook( + &mut self, + params: &[i64], + intermediates: &[u8], + _ignore: bool, + action: char, + ) { if log::log_enabled!(log::Level::Debug) { - // TODO: include the final byte here (it seems to be a bug that - // the vte parser doesn't currently pass it to this method) match intermediates.get(0) { None => log::debug!( - "unhandled dcs sequence: DCS {}", + "unhandled dcs sequence: DCS {} {}", param_str(params), + action, ), Some(i) => log::debug!( - "unhandled dcs sequence: DCS {} {}", + "unhandled dcs sequence: DCS {} {} {}", i, param_str(params), + action, ), } } -- cgit v1.2.3