Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: terminal resizing and prompt problem
- X-seq: zsh-users 7679
- From: Nathan Sommer <sommena@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: terminal resizing and prompt problem
- Date: Sun, 11 Jul 2004 15:59:07 -0400
- In-reply-to: <Pine.LNX.4.60.0407102241010.24945@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040710172553.168f14b9@localhost> <Pine.LNX.4.60.0407101848380.24945@xxxxxxxxxxxxxxxxxx> <20040711002054.3d469d20@localhost> <Pine.LNX.4.60.0407102241010.24945@xxxxxxxxxxxxxxxxxx>
On Sat, 10 Jul 2004 22:56:13 -0700 (PDT)
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> 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%} '
That works like a charm. I'm pretty new to zsh, so I hadn't played around
with the precmd function yet. Pretty cool.
> 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?
That's what I do too, most of the time. But sometimes I want my windows just
so.
Thanks a lot for your responses.
Nate
--
sommena@xxxxxxxxxxxxxx
http://cs.earlham.edu/~sommena
Messages sorted by:
Reverse Date,
Date,
Thread,
Author