From: Nathan Sommer <sommena@cs.earlham.edu>
To: zsh-users@sunsite.dk
Subject: terminal resizing and prompt problem
Date: Sat, 10 Jul 2004 17:25:53 -0400 [thread overview]
Message-ID: <20040710172553.168f14b9@localhost> (raw)
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
next reply other threads:[~2004-07-10 21:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-10 21:25 Nathan Sommer [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040710172553.168f14b9@localhost \
--to=sommena@cs.earlham.edu \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).