GUACAMOLE-622: Implicitly invoke guac_terminal_start() if prompting is required.

This commit is contained in:
Michael Jumper 2018-08-30 10:06:20 -07:00
parent 61a51df1b2
commit 0b39b0fc5f
2 changed files with 6 additions and 1 deletions

View File

@ -943,6 +943,9 @@ char* guac_terminal_prompt(guac_terminal* terminal, const char* title,
int pos; int pos;
char in_byte; char in_byte;
/* Prompting implicitly requires user input */
guac_terminal_start(terminal);
/* Print title */ /* Print title */
guac_terminal_printf(terminal, "%s", title); guac_terminal_printf(terminal, "%s", title);

View File

@ -652,7 +652,9 @@ void guac_terminal_notify(guac_terminal* terminal);
/** /**
* Reads a single line from this terminal's STDIN, storing the result in a * Reads a single line from this terminal's STDIN, storing the result in a
* newly-allocated string. Input is retrieved in the same manner as * newly-allocated string. Input is retrieved in the same manner as
* guac_terminal_read_stdin() and the same restrictions apply. * guac_terminal_read_stdin() and the same restrictions apply. As reading input
* naturally requires user interaction, this function will implicitly invoke
* guac_terminal_start().
* *
* @param terminal * @param terminal
* The terminal to which the provided title should be output, and from * The terminal to which the provided title should be output, and from