From ae7959c6a4afff20f009b01d735fec1d9cb74f43 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 22 May 2013 11:54:28 -0700 Subject: [PATCH] Clear screen after prompts. --- protocols/ssh/src/ssh_client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocols/ssh/src/ssh_client.c b/protocols/ssh/src/ssh_client.c index 90ecb820..10f76067 100644 --- a/protocols/ssh/src/ssh_client.c +++ b/protocols/ssh/src/ssh_client.c @@ -147,6 +147,9 @@ void* ssh_client_thread(void* data) { prompt(client, "Password: ", client_data->password, sizeof(client_data->password), false) == NULL) return NULL; + /* Clear screen */ + guac_terminal_write_all(stdout_fd, "\x1B[H\x1B[J", 6); + /* Open SSH session */ client_data->session = ssh_new(); if (client_data->session == NULL) {