aboutsummaryrefslogtreecommitdiffstats
path: root/src/pty-unix.h
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-02-12 19:46:13 -0500
committerJesse Luehrs <doy@tozt.net>2017-02-12 19:46:13 -0500
commit6ee215a7797cbb15aed6136ccfcaf5daff5ae654 (patch)
tree718b88f2b96ba35478e28ea2039f0054789b04af /src/pty-unix.h
parenteab84456897848eb9c6a0d24eb8f5e2fbc4f8969 (diff)
downloadrunes-6ee215a7797cbb15aed6136ccfcaf5daff5ae654.tar.gz
runes-6ee215a7797cbb15aed6136ccfcaf5daff5ae654.zip
combine flushes when reading large amounts of data
on linux at least, you can only read 4096 bytes of data from a pty, so large writes would cause a lot of redraws
Diffstat (limited to 'src/pty-unix.h')
-rw-r--r--src/pty-unix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pty-unix.h b/src/pty-unix.h
index 8894072..553be12 100644
--- a/src/pty-unix.h
+++ b/src/pty-unix.h
@@ -11,6 +11,8 @@ struct runes_pty {
char readbuf[RUNES_READ_BUFFER_LENGTH];
int readlen;
int remaininglen;
+
+ int scheduled_flush: 1;
};
RunesPty *runes_pty_new(void);