Mark UserByte actions handled

This commit is contained in:
Keith Winstein
2011-02-03 03:21:30 -05:00
parent bab4f23b44
commit 4ca5b35d7d
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ int termemu( int host_fd, int src_fd, bool user, int debug_fd,
act->act_on_terminal( terminal ); act->act_on_terminal( terminal );
/* print out action for debugging */ /* print out action for debugging */
if ( (debug_fd > 0) ) { if ( (debug_fd > 0) && (!act->handled) ) {
char actsum[ 64 ]; char actsum[ 64 ];
snprintf( actsum, 64, "%s ", act->str().c_str() ); snprintf( actsum, 64, "%s ", act->str().c_str() );
swrite( debug_fd, actsum ); swrite( debug_fd, actsum );
+2
View File
@@ -21,5 +21,7 @@ std::string UserInput::input( Parser::UserByte *act )
/* This doesn't handle the 8-bit SS3 C1 control, which would be /* This doesn't handle the 8-bit SS3 C1 control, which would be
two octets in UTF-8. Fortunately nobody seems to send this. */ two octets in UTF-8. Fortunately nobody seems to send this. */
act->handled = true;
return std::string( translated_str ); return std::string( translated_str );
} }