GUAC-734: Return to echo after HTS. Return to echo on unexpected characters within OSC.

This commit is contained in:
Michael Jumper 2014-06-11 15:04:39 -07:00
parent adc15d50eb
commit c56412f69e

View File

@ -309,6 +309,7 @@ int guac_terminal_escape(guac_terminal* term, unsigned char c) {
/* Set Tab (HTS) */ /* Set Tab (HTS) */
case 'H': case 'H':
guac_terminal_set_tab(term, term->cursor_col); guac_terminal_set_tab(term, term->cursor_col);
term->char_handler = guac_terminal_echo;
break; break;
/* Reverse Linefeed */ /* Reverse Linefeed */
@ -957,6 +958,12 @@ int guac_terminal_osc(guac_terminal* term, unsigned char c) {
else if (c == 0x9C || c == 0x5C || c == 0x07) else if (c == 0x9C || c == 0x5C || c == 0x07)
term->char_handler = guac_terminal_echo; term->char_handler = guac_terminal_echo;
/* Stop on unrecognized character */
else {
guac_client_log_info(term->client, "Unexpected character in OSC: 0x%X", c);
term->char_handler = guac_terminal_echo;
}
return 0; return 0;
} }