Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
terminal resizing and prompt problem
- X-seq: zsh-users 7673
- From: Nathan Sommer <sommena@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: terminal resizing and prompt problem
- Date: Sat, 10 Jul 2004 17:25:53 -0400
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hello,
I have a problem with my zsh prompt. It's 2 lines long and looks like so:
[/home/nate]
[17:02]%
The code looks like this:
PS1=$'%{\e[1;32m%}[%d]\n%{\e[1;34m%}[%T]%{\e[1;32m%}%%%{\e[0m%} '
It works just fine, until I try to resize my terminal. For each character height I resize vertically, or each character width I resize horizontally, the top line of my prompt is repeated. For example, if I resize my terminal to make it 6 lines taller, I end up with this:
[/home/nate]
[/home/nate]
[/home/nate]
[/home/nate]
[/home/nate]
[/home/nate]
[/home/nate]
[17:14]%
This is terribly annoying, since it means I can't resize my terminal to see more output, since any additional visibility I would have gained is taken up by the additional lines of my prompt. This happens in both xterm and rxvt. Is this a bug? Or is there an easy fix to this that I haven't found?
Thanks,
Nate
--
sommena@xxxxxxxxxxxxxx
http://cs.earlham.edu/~sommena
Messages sorted by:
Reverse Date,
Date,
Thread,
Author