diff options
author | Jesse Luehrs <doy@tozt.net> | 2017-02-12 19:46:13 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2017-02-12 19:46:13 -0500 |
commit | 6ee215a7797cbb15aed6136ccfcaf5daff5ae654 (patch) | |
tree | 718b88f2b96ba35478e28ea2039f0054789b04af /src/pty-unix.h | |
parent | eab84456897848eb9c6a0d24eb8f5e2fbc4f8969 (diff) | |
download | runes-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.h | 2 |
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); |