summaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/term/mod.rs
diff options
context:
space:
mode:
authorKirill Chibisov <wchibisovkirill@gmail.com>2019-11-17 05:10:11 +0300
committerChristian Duerr <contact@christianduerr.com>2019-11-17 03:10:11 +0100
commitbcdc605436ebe137173c531844a739eda6ee41ae (patch)
tree70b9a2655571a6df15bff7fa08b94425e4e6bfa3 /alacritty_terminal/src/term/mod.rs
parent495a6f3526f5127c342d67980d0335f1ed4e235b (diff)
downloadalacritty-bcdc605436ebe137173c531844a739eda6ee41ae.tar.gz
alacritty-bcdc605436ebe137173c531844a739eda6ee41ae.zip
Fix ESC escapes not ignoring invalid intermediates
Previously, `ESC` escapes would ignore invalid intermediates and still execute the specified actions, leading to false positives. If there's an unexpected, intermediate specified now, the escape will be dropped. This also fixes an issue with `CSI Ps c` not dropping the escape with invalid intermediates.
Diffstat (limited to 'alacritty_terminal/src/term/mod.rs')
-rw-r--r--alacritty_terminal/src/term/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs
index ce63c407..8d69fb3b 100644
--- a/alacritty_terminal/src/term/mod.rs
+++ b/alacritty_terminal/src/term/mod.rs
@@ -1397,6 +1397,7 @@ impl<T: EventListener> ansi::Handler for Term<T> {
#[inline]
fn identify_terminal<W: io::Write>(&mut self, writer: &mut W) {
+ trace!("Reporting terminal identity");
let _ = writer.write_all(b"\x1b[?6c");
}