zsh-users
 help / color / mirror / code / Atom feed
* terminal resizing and prompt problem
@ 2004-07-10 21:25 Nathan Sommer
  2004-07-11  3:41 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Nathan Sommer @ 2004-07-10 21:25 UTC (permalink / raw)
  To: zsh-users

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@cs.earlham.edu
http://cs.earlham.edu/~sommena


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-07-11 20:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-10 21:25 terminal resizing and prompt problem Nathan Sommer
2004-07-11  3:41 ` Bart Schaefer
2004-07-11  4:20   ` Nathan Sommer
2004-07-11  5:56     ` Bart Schaefer
2004-07-11 19:59       ` Nathan Sommer

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).