aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-02-09 12:50:17 -0500
committerJesse Luehrs <doy@tozt.net>2020-02-09 13:07:40 -0500
commit1cc79222c23fc624cfa53e2ada0b61aad618b9d9 (patch)
tree0f0f415db35bd39f7e5553eaad6546d561f8995d
parent1b01fb4c2c687d5da8b041f59000374d973426e0 (diff)
downloadvt100-rust-1cc79222c23fc624cfa53e2ada0b61aad618b9d9.tar.gz
vt100-rust-1cc79222c23fc624cfa53e2ada0b61aad618b9d9.zip
bump vte version
-rw-r--r--CHANGELOG.md6
-rw-r--r--Cargo.toml2
-rw-r--r--src/screen.rs18
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,
),
}
}