mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 12:37:02 +00:00
8c8ce08d7927e6a83f0cb09388b2d1068fded529

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.
Description
No description provided
Languages
C
87.4%
Roff
7.1%
Shell
2.7%
Yacc
1.4%
M4
0.8%
Other
0.5%