Specify terminal type.
This commit is contained in:
parent
f4475b4f00
commit
e3f89052e5
@ -192,20 +192,13 @@ void* ssh_client_thread(void* data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Request PTY */
|
/* 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_protocol_send_error(socket, "Unable to allocate PTY for channel.");
|
||||||
guac_socket_flush(socket);
|
guac_socket_flush(socket);
|
||||||
return NULL;
|
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 */
|
/* Request shell */
|
||||||
if (channel_request_shell(client_data->term_channel) != SSH_OK) {
|
if (channel_request_shell(client_data->term_channel) != SSH_OK) {
|
||||||
guac_protocol_send_error(socket, "Unable to associate shell with PTY.");
|
guac_protocol_send_error(socket, "Unable to associate shell with PTY.");
|
||||||
|
Loading…
Reference in New Issue
Block a user