On 2026-05-22 01:26:48 +0200, Vincent Lefevre wrote:
> On 2026-05-21 14:57:07 +0200, Peter Dey wrote:
> > Do you think you could write a minimal reproducer in a bash script?
> > I haven't been able to reproduce the same symptoms anywhere except for mutt.
> 
> Xterm logging allowed me to find the escape sequences:
> 
>   screen sh -c 'printf "\e[40m\e[K\n\e[K\n\e[K\n"; sleep 999'
> 
> The 3 lines above the cursor (those generated by "\e[K\n") are
> affected: no issues before a redisplay, and after a redisplay
> (C-a C-l), sequences of spaces are generated.

Another test:

  screen sh -c 'printf "\e[40m\e[K\n\e[41m\e[K\n\e[49m\e[K\n"; sleep 999'

This does the following:
  * Set the background to black and erase the line.
  * Set the background to red and erase the line.
  * Set the background to the default and erase the line.

Since bce is on, each line is erase with the chosen background color.

Before redisplay, none of the lines are affected. After redisplay,
the first two lines (those with an explicit background color) are
affected, but not the third one (default background).

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

Reply via email to