Add echo flag.

This commit is contained in:
Michael Jumper 2013-05-18 22:24:09 -07:00
parent a53a5e2e1b
commit 0057460c44
2 changed files with 9 additions and 0 deletions

View File

@ -75,6 +75,14 @@ struct guac_terminal {
*/
pthread_mutex_t lock;
/**
* Whether input should be echoed when keys are pressed. Normally, the
* terminal on the side of the SSH server will handle this automatically,
* and this flag will need to be cleared. When SSH is not yet connected,
* this flag would need to be set for input to be visible.
*/
bool echo;
/**
* The relative offset of the display. A positive value indicates that
* many rows have been scrolled into view, zero indicates that no

View File

@ -94,6 +94,7 @@ guac_terminal* guac_terminal_create(guac_client* client,
term->scroll_end = term->term_height - 1;
term->text_selected = false;
term->echo = true;
/* Size display */
guac_terminal_display_resize(term->display,