Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: terminal resizing and prompt problem
On Sun, 11 Jul 2004, Nathan Sommer wrote:
> Am I correct in concluding from your reply that it is impossible to have
> a multi-line zsh prompt and not get any extra lines after resizing a
> terminal?
It's impossible to have a multi-line value of $PS1 withoug getting extra
lines after resizing.
However, it occurs to me that you can make it look pretty much the same by
printing the first line yourself in the precmd function and having the
second line as the value of $PS1.
E.g.
precmd() { print -rP $'\e[1;32m[%d]\e[0m' }
PS1=$'%{\e[1;34m%}[%T]%{\e[1;32m%}%%%{\e[0m%} '
Incidentally, I also use fvwm, but I almost never resize a window by
dragging. I have a title-bar button using a function for "Maximize 0 100"
and simply toggle back and forth between having the window be the full
height of the display, and whatever height it started at. What's the
point of mucking around with anything in between?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author