From e3f89052e5619c9759486bbd5fc6dd4646160121 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 23 May 2013 23:43:35 -0700 Subject: [PATCH] Specify terminal type. --- protocols/ssh/src/ssh_client.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/protocols/ssh/src/ssh_client.c b/protocols/ssh/src/ssh_client.c index 10f76067..5f304a04 100644 --- a/protocols/ssh/src/ssh_client.c +++ b/protocols/ssh/src/ssh_client.c @@ -192,20 +192,13 @@ void* ssh_client_thread(void* data) { } /* Request PTY */ - if (channel_request_pty(client_data->term_channel) != SSH_OK) { + if (channel_request_pty_size(client_data->term_channel, "linux", + client_data->term->term_width, client_data->term->term_height) != SSH_OK) { guac_protocol_send_error(socket, "Unable to allocate PTY for channel."); guac_socket_flush(socket); return NULL; } - /* Request PTY size */ - if (channel_change_pty_size(client_data->term_channel, - client_data->term->term_width, client_data->term->term_height) != SSH_OK) { - guac_protocol_send_error(socket, "Unable to change PTY size."); - guac_socket_flush(socket); - return NULL; - } - /* Request shell */ if (channel_request_shell(client_data->term_channel) != SSH_OK) { guac_protocol_send_error(socket, "Unable to associate shell with PTY.");