On 2026-08-27 16:01 -0400, Thomas Dickey wrote:
> On Tue, Nov 22, 2011 at 04:37:30PM -0500, Jim Paris wrote:
>> Hi,
>>
>> Xterm is still *really* slow for me when background colors are set;
>> it's if jump-scrolling is disabled. For example:
>>
>> $ time xterm -geometry 80x25 -e 'for i in `seq 1 10000`; do echo -e "This is
>> line \e[40;31;01m$i\e[0m" ; done'
>>
>> real 0m23.052s
>> user 0m1.396s
>> sys 0m1.148s
>>
>> $ time xterm -geometry 80x25 -e 'for i in `seq 1 10000`; do echo -e "This is
>> line \e[31;01m$i\e[0m" ; done'
>>
>> real 0m0.781s
>> user 0m0.400s
>> sys 0m0.116s
>
> I've added a note to the xterm FAQ about this. It's not a bug in xterm.
>
> https://invisible-island.net/xterm/xterm.faq.html#scroll_speed-2026
>
> It's actually a defect in the Xorg server. In xterm patch #411, I've
> provided a workaround, so technically it's "fixed-upstream".
Thanks for doing that, but when the background color changes scrolling
is still much slower than in other terminal emulators, and the Xorg
process's CPU usage goes up quite a bit then, so I prefer to leave the
bug open.
Cheers,
Sven