Support some executes (LF, CR, BS+rubout)

This commit is contained in:
Keith Winstein
2011-01-21 17:22:52 -05:00
parent 30ab4371db
commit c1d6b3f30e
5 changed files with 51 additions and 4 deletions
+5 -1
View File
@@ -188,7 +188,11 @@ int vt_parser( int fd, Parser::UTF8Parser *parser )
assert( act );
if ( act->char_present ) {
printf( "%s(0x%02x=%lc) ", act->name().c_str(), act->ch, act->ch );
if ( isprint( act->ch ) ) {
printf( "%s(0x%02x=%lc) ", act->name().c_str(), act->ch, act->ch );
} else {
printf( "%s(0x%02x) ", act->name().c_str(), act->ch );
}
} else {
printf( "[%s] ", act->name().c_str() );
}