From 17a4d141deff2fc5fd282887af783a20bf5bf1fd Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 25 Mar 2013 03:01:51 -0700 Subject: [PATCH] Remove cursor layer. --- protocols/ssh/include/terminal.h | 5 ----- protocols/ssh/src/ssh_client.c | 11 ----------- protocols/ssh/src/terminal.c | 1 - 3 files changed, 17 deletions(-) diff --git a/protocols/ssh/include/terminal.h b/protocols/ssh/include/terminal.h index 087615b2..f888f8a2 100644 --- a/protocols/ssh/include/terminal.h +++ b/protocols/ssh/include/terminal.h @@ -301,11 +301,6 @@ struct guac_terminal { */ int cursor_col; - /** - * Simple cursor layer until scrollback, etc. is implemented. - */ - guac_layer* cursor_layer; - /** * The attributes which will be applied to future characters. */ diff --git a/protocols/ssh/src/ssh_client.c b/protocols/ssh/src/ssh_client.c index 2da7d481..b6d2b998 100644 --- a/protocols/ssh/src/ssh_client.c +++ b/protocols/ssh/src/ssh_client.c @@ -122,17 +122,6 @@ int guac_client_init(guac_client* client, int argc, char** argv) { term->char_width * term->term_width, term->char_height * term->term_height); - /* Cursor layer need only be one char */ - guac_protocol_send_size(socket, term->cursor_layer, term->char_width, term->char_height); - - /* Draw cursor */ - guac_protocol_send_rect(socket, term->cursor_layer, - 0, 0, term->char_width, term->char_height); - - guac_protocol_send_cfill(socket, - GUAC_COMP_OVER, term->cursor_layer, - 0x40, 0xFF, 0x80, 0x80); - guac_socket_flush(socket); /* Open SSH session */ diff --git a/protocols/ssh/src/terminal.c b/protocols/ssh/src/terminal.c index 929f6cd8..05a94fc4 100644 --- a/protocols/ssh/src/terminal.c +++ b/protocols/ssh/src/terminal.c @@ -134,7 +134,6 @@ guac_terminal* guac_terminal_create(guac_client* client, term->cursor_row = 0; term->cursor_col = 0; - term->cursor_layer = guac_client_alloc_layer(client); term->term_width = width / term->char_width; term->term_height = height / term->char_height;