From 25016bec0a88944ba936cf52166e65213c7c7825 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Mon, 4 Jul 2016 13:38:18 -0700 Subject: Add some printing for unhandled non-CSI escapes --- src/ansi.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/ansi.rs b/src/ansi.rs index 255db888..6228ed30 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -412,9 +412,11 @@ impl Parser { c == 0x1b as char || is_control_c1(c) { self.state = State::Base; + println!(""); } // TODO actually use these bytes. For now, we just throw them away. + print!("{:?}", c); } /// Handle character following an ESC @@ -447,6 +449,8 @@ impl Parser { '=' => sequence_complete!(set_keypad_application_mode), '>' => sequence_complete!(unset_keypad_application_mode), 'P' | '_' | '^' | ']' | 'k' | '(' => { + println!("Entering EscapeOther"); + print!("{:?}", c); self.state = State::EscapeOther; }, _ => { -- cgit