Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#134474: zsh misbehaves if LINES=2
- X-seq: zsh-workers 16663
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: Bug#134474: zsh misbehaves if LINES=2
- Date: Sun, 17 Feb 2002 20:55:23 -0500
- Cc: Joey Hess <joeyh@xxxxxxxxxx>, 134474-forwarded@xxxxxxxxxxxxxxx
- In-reply-to: <E16cYRl-00039Y-00@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <E16cYRl-00039Y-00@xxxxxxxxxxxxxxxx>
> As you probably know, my zsh prompt sets the xterm title. Well, this
> seems to not work in an xterm that is sized to 80x2. Updates to the
> title, which should happen every time the prompt is displayed, do not.
> Also weird is that, for root, I underline the username in the prompt,
> and this too does not happen in such a small xterm.
>
> If I export LINES=10 in such a small xterm though, all the prompt stuff
> right away starts to work the same way it does in a larger xterm. Of
> course, this is liable to break other stuff..
>
> My guess is that zsh is doing some kind of trimming of the prompt it
> displays if the terminal seems to be too small to contain the whole
> thing, or something like that.
Yes, it considers the terminal to be short if it's under 3 lines long;
what I don't understand is why it's eliding everything within %{ %}.
(If you get rid of these delimeters, which you almost certainly don't
want to do, it will set the xterm title as expected).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author