Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [tip] mouse support
- X-seq: zsh-users 8204
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- Subject: Re: [tip] mouse support
- Date: Thu, 11 Nov 2004 09:47:02 -0800 (PST)
- Cc: Zsh users list <zsh-users@xxxxxxxxxx>
- In-reply-to: <20041111162209.GC4451@sc>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20041111122011.GB4451@sc> <4483.1100184032@xxxxxxx> <20041111162209.GC4451@sc>
- Reply-to: zsh-users@xxxxxxxxxx
On Thu, 11 Nov 2004, Stephane Chazelas wrote:
> In that new one, I tried to address the tab/newline issue.
> It tries to calculate the length of the last line of the prompt,
> it may fail if PS1 contains %%s or %{ %{ ... %} %} or if two
> consecutive expansions of PS1 may not generate the same thing
There's some code in Functions/Prompts/prompt_bart_setup in the function
prompt_bart_precmd that computes the width of prompt strings. It's been
specialized to expect to compute only the width of the first line of a
two-line PS1, but it shouldn't be hard to adapt.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author