X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/f317611e5572e4292e3ee88f6956a97fcd794089..fe50e8140a2dbb3ba357a0ab777f34e07d568c23:/terminal.c diff --git a/terminal.c b/terminal.c index 81603e5b..4cd003aa 100644 --- a/terminal.c +++ b/terminal.c @@ -2188,3 +2188,14 @@ void term_deselect (void) { deselect(); term_update(); } + +/* + * from_backend(), to get data from the backend for the terminal. + */ +void from_backend(int is_stderr, char *data, int len) { + while (len--) { + if (inbuf_head >= INBUF_SIZE) + term_out(); + inbuf[inbuf_head++] = *data++; + } +}