diff options
author | Joe Wilm <joe@jwilm.com> | 2016-07-04 13:38:18 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-07-04 13:38:18 -0700 |
commit | 25016bec0a88944ba936cf52166e65213c7c7825 (patch) | |
tree | 94ec37dcad94cb64fb651da53b2cda85794be642 /src/ansi.rs | |
parent | aa9c75ce163b6559934a24a61097272cd29372e3 (diff) | |
download | alacritty-25016bec0a88944ba936cf52166e65213c7c7825.tar.gz alacritty-25016bec0a88944ba936cf52166e65213c7c7825.zip |
Add some printing for unhandled non-CSI escapes
Diffstat (limited to 'src/ansi.rs')
-rw-r--r-- | src/ansi.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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; }, _ => { |