Restore cursor redraw function.
This commit is contained in:
parent
f1844ec555
commit
c2e80bda81
@ -451,5 +451,10 @@ void guac_terminal_display_set_rect(guac_terminal_display* display,
|
||||
void guac_terminal_display_flush(guac_terminal_display* display,
|
||||
guac_terminal* terminal);
|
||||
|
||||
/**
|
||||
* Update the cursor position and contents.
|
||||
*/
|
||||
int guac_terminal_redraw_cursor(guac_terminal* term);
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -106,6 +106,10 @@ int ssh_guac_client_handle_messages(guac_client* client) {
|
||||
|
||||
/* Flush terminal display */
|
||||
guac_terminal_display_flush(client_data->term->display, client_data->term);
|
||||
|
||||
/* Update cursor */
|
||||
guac_terminal_redraw_cursor(client_data->term);
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
@ -987,3 +987,18 @@ void guac_terminal_display_flush(guac_terminal_display* display,
|
||||
|
||||
}
|
||||
|
||||
int guac_terminal_redraw_cursor(guac_terminal* term) {
|
||||
|
||||
guac_socket* socket = term->client->socket;
|
||||
|
||||
/* Erase old cursor */
|
||||
return
|
||||
guac_protocol_send_move(socket,
|
||||
term->cursor_layer,
|
||||
|
||||
GUAC_DEFAULT_LAYER,
|
||||
term->char_width * term->cursor_col,
|
||||
term->char_height * term->cursor_row,
|
||||
1);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user