Clear screen after prompts.
This commit is contained in:
parent
88dfb1517d
commit
ae7959c6a4
@ -147,6 +147,9 @@ void* ssh_client_thread(void* data) {
|
|||||||
prompt(client, "Password: ", client_data->password, sizeof(client_data->password), false) == NULL)
|
prompt(client, "Password: ", client_data->password, sizeof(client_data->password), false) == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
/* Clear screen */
|
||||||
|
guac_terminal_write_all(stdout_fd, "\x1B[H\x1B[J", 6);
|
||||||
|
|
||||||
/* Open SSH session */
|
/* Open SSH session */
|
||||||
client_data->session = ssh_new();
|
client_data->session = ssh_new();
|
||||||
if (client_data->session == NULL) {
|
if (client_data->session == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user