aboutsummaryrefslogtreecommitdiff
path: root/examples/parselog.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2019-11-03 20:50:38 +0100
committerGitHub <noreply@github.com>2019-11-03 20:50:38 +0100
commit084f853e3f4b566c783867d9f043f6a1d974ba59 (patch)
treed85f52d37557e181d265c1263bb930712f56acaa /examples/parselog.rs
parent6bf9fcd440ce01b3a4ddecb0b8e2aedfbfa9b31a (diff)
parent82fc09895ec76cd07dda39f127ca5e5c21f8abf4 (diff)
downloadr-alacritty-vte-084f853e3f4b566c783867d9f043f6a1d974ba59.tar.gz
r-alacritty-vte-084f853e3f4b566c783867d9f043f6a1d974ba59.tar.bz2
r-alacritty-vte-084f853e3f4b566c783867d9f043f6a1d974ba59.zip
Fix handling of DCS escapes
Fixes #28.
Diffstat (limited to 'examples/parselog.rs')
-rw-r--r--examples/parselog.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/parselog.rs b/examples/parselog.rs
index a2c3b2f..acd56dc 100644
--- a/examples/parselog.rs
+++ b/examples/parselog.rs
@@ -15,9 +15,9 @@ impl vte::Perform for Log {
println!("[execute] {:02x}", byte);
}
- fn hook(&mut self, params: &[i64], intermediates: &[u8], ignore: bool) {
- println!("[hook] params={:?}, intermediates={:?}, ignore={:?}",
- params, intermediates, ignore);
+ fn hook(&mut self, params: &[i64], intermediates: &[u8], ignore: bool, c: char) {
+ println!("[hook] params={:?}, intermediates={:?}, ignore={:?}, char={:?}",
+ params, intermediates, ignore, c);
}
fn put(&mut self, byte: u8) {