From 3826fa68a07870427ace71ee886dc40fb5e46e95 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Fri, 29 Jul 2016 20:15:36 -0700 Subject: [PATCH] Fix debug printing in ansi It was always printing intead of only debug builds. --- src/ansi.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ansi.rs b/src/ansi.rs index 3df4cd34..e2aa2ef1 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -449,8 +449,8 @@ impl Parser { '=' => sequence_complete!(set_keypad_application_mode), '>' => sequence_complete!(unset_keypad_application_mode), 'P' | '_' | '^' | ']' | 'k' | '(' => { - println!("Entering EscapeOther"); - print!("{:?}", c); + debug_println!("Entering EscapeOther"); + debug_print!("{:?}", c); self.state = State::EscapeOther; }, _ => {