Fix bug in state diagram, and handle VT. Now passes screens 1 and 2 of vttest

This commit is contained in:
Keith Winstein
2011-01-31 22:51:41 -05:00
parent f291165816
commit ebe95dd2ae
3 changed files with 14 additions and 2 deletions
+6 -1
View File
@@ -29,7 +29,12 @@ std::string Emulator::input( char c, int actfd )
/* print out debugging information */
if ( (actfd > 0) && ( !act->handled ) ) {
char actsum[ 64 ];
snprintf( actsum, 64, "%s%s ", act->str().c_str(), dispatch.str().c_str() );
if ( (typeid( *act ) == typeid( Parser::CSI_Dispatch ))
|| (typeid( *act ) == typeid( Parser::Esc_Dispatch )) ) {
snprintf( actsum, 64, "%s%s ", act->str().c_str(), dispatch.str().c_str() );
} else {
snprintf( actsum, 64, "%s ", act->str().c_str() );
}
swrite( actfd, actsum );
}
delete act;