Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#134474: zsh misbehaves if LINES=2
- X-seq: zsh-workers 16683
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Clint Adams <schizo@xxxxxxxxxx>, Zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: Bug#134474: zsh misbehaves if LINES=2
- Date: Thu, 21 Feb 2002 06:50:16 +0000
- Cc: Joey Hess <joeyh@xxxxxxxxxx>, 134474-forwarded@xxxxxxxxxxxxxxx
- In-reply-to: <20020218015523.GA23456@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <E16cYRl-00039Y-00@xxxxxxxxxxxxxxxx> <20020218015523.GA23456@xxxxxxxx>
On Feb 17, 8:55pm, Clint Adams wrote:
} Subject: Re: Bug#134474: zsh misbehaves if LINES=2
}
} > 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.
} >
} > 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 %{ %}.
This is from SINGLE_LINE_ZLE mode, which is automatically turned on when
LINES becomes too small, and is done by singlerefresh() rather than by
the prompt code. The right-side prompt is turned off in this case as
well. This is (sort of, not well) documented in "man zshzle".
However, the prompt code disables termcap sequences like underlining on
short terminals; see Src/prompt.c:tsetcap(). This is probably done in
support of SINGLE_LINE_ZLE, but if so I think it ought to be based on
the option setting rather than on (termflags & TERM_SHORT).
Geoff?
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author