aboutsummaryrefslogtreecommitdiff
path: root/grid.c
diff options
context:
space:
mode:
authornicm <nicm>2017-04-18 20:37:49 +0000
committernicm <nicm>2017-04-18 20:37:49 +0000
commit8c8ce08d7927e6a83f0cb09388b2d1068fded529 (patch)
tree9b785ced1b4399d976e2e0d18070ea915dc00df7 /grid.c
parent623e35f5946498d0e89127756fb49258f768a6d0 (diff)
downloadrtmux-8c8ce08d7927e6a83f0cb09388b2d1068fded529.tar.gz
rtmux-8c8ce08d7927e6a83f0cb09388b2d1068fded529.tar.bz2
rtmux-8c8ce08d7927e6a83f0cb09388b2d1068fded529.zip
On terminals without DECSLRM, when a pane that is less than the full
with of the terminal scrolls, tmux needs to redraw the entire pane. This results in a large amount of output data which can cause slow terminals to struggle, particularly when many lines are scrolled together quickly. This can be reduced by only redrawing when tmux doesn't hold any buffered data for the terminal. If a redraw is required and data is buffered, the redraw is deferred until all that data is consumed (it is checked after every event loop, a timer is used to ensure this happens at some point). While a redraw is pending, no additional data will be written to the terminal. The redraw still happens, now it is just pushed back if it is possible it would just add more data on top of a terminal that is already behind. This both gives the terminal a chance to catch up, and allows tmux to process more scrolling (that would require additional redraws) in the meantime. Helps with a problem reported by Greg Hurrell.
Diffstat (limited to 'grid.c')
0 files changed, 0 insertions, 0 deletions