diff --git a/src/tty.c b/src/tty.c index d0569b1..067179a 100644 --- a/src/tty.c +++ b/src/tty.c @@ -70,7 +70,12 @@ static bool map_o_del_bs = false; static void print_hex(char c) { - printf("%02x ", (unsigned char) c); + + if ((c == '\n') || (c == '\r')) + printf("%c", c); + else + printf("%02x ", (unsigned char) c); + fflush(stdout); }