aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-28 22:53:14 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-28 22:53:14 +0000
commitdc3fdc8dc7c45fc4924ee4eeb8b6c7c6a80e41f1 (patch)
treefcc4e2b9506420e9b35c48811052cafc7866ee22 /tmux.h
parent1eaefbf1698fc66815e538fc3040f4446f444f7b (diff)
downloadrtmux-dc3fdc8dc7c45fc4924ee4eeb8b6c7c6a80e41f1.tar.gz
rtmux-dc3fdc8dc7c45fc4924ee4eeb8b6c7c6a80e41f1.tar.bz2
rtmux-dc3fdc8dc7c45fc4924ee4eeb8b6c7c6a80e41f1.zip
If any client currently displaying a window pane has more than 1 KB of output
buffered, don't accept any further data from the process running in the pane. This makes tmux much more responsive when flooded with output, although other buffers can still have an impact when running remotely. Prompted by a query from Ranganathan Sankaralingam.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index e270e821..41ace3a8 100644
--- a/tmux.h
+++ b/tmux.h
@@ -65,6 +65,9 @@ extern char **environ;
/* Maximum poll timeout (when attached). */
#define POLL_TIMEOUT 50
+/* Maximum data to buffer for output before suspending reading from panes. */
+#define BACKOFF_THRESHOLD 1024
+
/*
* Maximum sizes of strings in message data. Don't forget to bump
* PROTOCOL_VERSION if any of these change!