zsh-users
 help / color / mirror / code / Atom feed
* Multiline prompt woes
@ 2011-06-29 15:02 Norbert Zeh
  0 siblings, 0 replies; only message in thread
From: Norbert Zeh @ 2011-06-29 15:02 UTC (permalink / raw)
  To: zsh-users

Hi there,

I've run into a somewhat annoying issue with multi-line prompts (even really
simple ones, such as "\n%~").  When the terminal is redrawn, for example
because of resizing the terminal window, the prompt gets messed up.  I don't
know how to describe this easily, but an example should make it clear.  Say my
multiline prompt is

LINE 1
LINE 2
%

Then, after redrawing, the screen shows

LINE 1
LINE 2
LINE 1
LINE 2
%

My suspicion is that zsh redraws the prompt upon resizing the window, and to do
this it simply goes back to the beginning of the current line (the third one),
and then draws the prompt from there, thereby duplicating the first two lines.
Interestingly enough, repeated resizing of the window does not lead to copies
of the first two lines to pile up.  It happens only once.  Once I run a
command, however, I can trigger the same behaviour with the next prompt again.

So, is there anything special I need to do to get zsh to handle multiline
prompts correctly?  Is this a bug?  If so, is it known?  Any feedback would be
appreciated.

Cheers,
Norbert


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-29 15:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-29 15:02 Multiline prompt woes Norbert Zeh

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).