From bcdc605436ebe137173c531844a739eda6ee41ae Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Sun, 17 Nov 2019 05:10:11 +0300 Subject: 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. --- alacritty_terminal/src/term/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'alacritty_terminal/src/term/mod.rs') 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 ansi::Handler for Term { #[inline] fn identify_terminal(&mut self, writer: &mut W) { + trace!("Reporting terminal identity"); let _ = writer.write_all(b"\x1b[?6c"); } -- cgit