GUAC-1452: Provide for storage of pipe stream within terminal struct.

This commit is contained in:
Michael Jumper 2016-01-12 16:51:32 -08:00
parent 528de38359
commit 051701d566
2 changed files with 10 additions and 0 deletions

View File

@ -326,6 +326,9 @@ guac_terminal* guac_terminal_create(guac_client* client,
return NULL;
}
/* Init pipe stream (output to display by default) */
term->pipe_stream = NULL;
/* Init terminal lock */
pthread_mutex_init(&(term->lock), NULL);

View File

@ -149,6 +149,13 @@ struct guac_terminal {
*/
int stdin_pipe_fd[2];
/**
* The currently-open pipe stream to which all terminal output should be
* written, if any. If no pipe stream is open, terminal output will be
* written to the terminal display, and this value will be NULL.
*/
guac_stream* pipe_stream;
/**
* Graphical representation of the current scroll state.
*/