#607628 zsh: prompt not immediately updated after window resize (missing fflush?)

Package:
zsh
Source:
zsh
Description:
shell with lots of features
Submitter:
Vincent Lefevre
Date:
2010-12-25 15:39:06 UTC
Severity:
minor
#607628#5
Date:
2010-12-20 11:30:25 UTC
From:
To:
1. Execute "zsh -f".
2. Type RPS1="%*" and [Enter] (to have the time in the prompt).
3. Resize the window.
-> If the width has changed, the right part of the prompt is
   redisplayed at the correct place, but in any case, the time
   displayed in the prompt is not updated, even though zsh has
   updated it internally. This can be seen with:
4. Type [Enter].
-> The time in the current prompt is updated to the time when the
   window has been resized. This shows that the time in the prompt
   was updated internally, but the effect couldn't be seen on the
   terminal.
   A new prompt is also output as expected.

Note: this is just an example using the time, but other prompt
information that could have changed after the window resize is
also affected. The snapshots show this with a more complex case.

There has been a discussion in the zsh-users mailing-list, but the
problem isn't solved yet. The thread starts at:

http://www.zsh.org/mla/users/2010/msg00897.html

#607628#10
Date:
2010-12-25 15:19:54 UTC
From:
To:
SIGWINCH are sent during the same second, so that you won't see
the problem in such a case.

The problem can be seen with fvwm by using the ResizeOutline style.
It can also be visible with the ResizeOpaque style (real-time resize),
but in such a case, you should change the width of the terminal only
by one column (or the last (one-)column change should occur more than
one second after the other column changes).