Mark UserByte actions handled
This commit is contained in:
+1
-1
@@ -184,7 +184,7 @@ int termemu( int host_fd, int src_fd, bool user, int debug_fd,
|
||||
act->act_on_terminal( terminal );
|
||||
|
||||
/* print out action for debugging */
|
||||
if ( (debug_fd > 0) ) {
|
||||
if ( (debug_fd > 0) && (!act->handled) ) {
|
||||
char actsum[ 64 ];
|
||||
snprintf( actsum, 64, "%s ", act->str().c_str() );
|
||||
swrite( debug_fd, actsum );
|
||||
|
||||
@@ -21,5 +21,7 @@ std::string UserInput::input( Parser::UserByte *act )
|
||||
/* This doesn't handle the 8-bit SS3 C1 control, which would be
|
||||
two octets in UTF-8. Fortunately nobody seems to send this. */
|
||||
|
||||
act->handled = true;
|
||||
|
||||
return std::string( translated_str );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user