projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Having created and used uxsel, it actually turns out to be
[u/mdw/putty]
/
terminal.c
diff --git
a/terminal.c
b/terminal.c
index
362d8b5
..
cd32a7e
100644
(file)
--- a/
terminal.c
+++ b/
terminal.c
@@
-418,6
+418,7
@@
Terminal *term_init(Config *mycfg, struct unicode_data *ucsdata,
term->attr_mask = 0xffffffff;
term->resize_fn = NULL;
term->resize_ctx = NULL;
term->attr_mask = 0xffffffff;
term->resize_fn = NULL;
term->resize_ctx = NULL;
+ term->in_term_out = FALSE;
return term;
}
return term;
}
@@
-4715,6
+4716,13
@@
int from_backend(void *vterm, int is_stderr, const char *data, int len)
bufchain_add(&term->inbuf, data, len);
bufchain_add(&term->inbuf, data, len);
+ if (!term->in_term_out) {
+ term->in_term_out = TRUE;
+ term_blink(term, 1);
+ term_out(term);
+ term->in_term_out = FALSE;
+ }
+
/*
* term_out() always completely empties inbuf. Therefore,
* there's no reason at all to return anything other than zero
/*
* term_out() always completely empties inbuf. Therefore,
* there's no reason at all to return anything other than zero