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

2010-12-25 Thread Vincent Lefevre
On 2010-12-20 12:30:25 +0100, Vincent Lefevre wrote:
 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 for the users of real-time resize: it may happen that two
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).

-- 
Vincent Lefèvre vinc...@vinc17.net - Web: http://www.vinc17.net/
100% accessible validated (X)HTML - Blog: http://www.vinc17.net/blog/
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



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

2010-12-20 Thread Vincent Lefevre
Package: zsh
Version: 4.3.10-17
Severity: minor

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

-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages zsh depends on:
ii  libc6 2.11.2-7   Embedded GNU C Library: Shared lib
ii  libcap2   1:2.19-3   support for getting/setting POSIX.
ii  libncursesw5  5.7+20100313-4 shared libraries for terminal hand

Versions of packages zsh recommends:
ii  libc6 2.11.2-7   Embedded GNU C Library: Shared lib
ii  libpcre3  8.02-1.1   Perl 5 Compatible Regular Expressi

Versions of packages zsh suggests:
ii  zsh-doc   4.3.10-17  zsh documentation - info/HTML form

-- no debconf information
attachment: zshprompt1.pngattachment: zshprompt2.png