Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Multi-line prompt and terminal window resize
- X-seq: zsh-workers 27069
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: TomÃÅ Nechutnà <nechtom@xxxxxxxxx>
- Subject: Re: Multi-line prompt and terminal window resize
- Date: Sun, 28 Jun 2009 21:30:29 +0200
- Cc: zsh-workers@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/fnuaBnaB1/mU0cWGtZXMLxCEqnMpa1j8DgKiERfZVY=; b=sKKIHsFRd6L0XkRFP+VgKZGDB8xOaDkA0XsxrB5gUjhNjAL18M//czJnCFhy8YxuRJ 7nFKJ/GcI7pD+2a+nahjyzIdHCd1nsVsuHg9MVt6RM2ekKYQOhySnpfAourMdMyHFhM0 UCLjG0nWqrSXRg1gafRtYndo9GLul1OY5XNy8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Dpdh6C3pdQLfvi4yJ7fs2IlxEJj9KQmNWfyhqUR6CVyhWlXoO/hlmO1RabTIR1lqDj Lu1WwQQoo94QmKuwKodcM4JVnDmfcrO1ICotH5JBhmEVfh7YnuSSJCD31620o285pYZn kap+KFesgVLNtTLV/7PtuwBb+Yl4/6FHNOdes=
- In-reply-to: <200906282055.34430.nechtom@xxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200906282055.34430.nechtom@xxxxxxxxx>
2009/6/28 TomÃÅ Nechutnà <nechtom@xxxxxxxxx>:
> Hello,
>
> I have multiline prompt:
>
> PROMPT="%n:%~
> $ "
>
> I noticed that after resizing terminal window (konsole and urxvt), zsh adds
> extra first line of prompt. But only after startup or when you type something
> before resizing (eg. when you resize n-times and don't type anything it
> happens just once).
If you have RPS1 set to something, I can explain what happens: The
problem is that urxvt reflows lines when you resize the terminal,
which can add a line, then zsh redraws it too, which keeps half of the
old line. I have no idea why it happens with a multiline prompt
though; it seems zsh doesn't output spaces to the end of the first
line. You get a quite fun effect if you setopt promptcr promptsp and
do echo -n foo, then resize (wider or narrower).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author