zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Stephane Chazelas <Stephane_Chazelas@yahoo.fr>
Cc: Zsh users list <zsh-users@sunsite.dk>
Subject: Re: [tip] mouse support
Date: Thu, 11 Nov 2004 09:47:02 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.61.0411110943030.30994@toltec.zanshin.com> (raw)
In-Reply-To: <20041111162209.GC4451@sc>

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.


  reply	other threads:[~2004-11-11 17:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-11 12:20 Stephane Chazelas
2004-11-11 14:40 ` Peter Stephenson
2004-11-11 16:22   ` Stephane Chazelas
2004-11-11 17:47     ` Bart Schaefer [this message]
2004-11-11 18:05       ` Stephane Chazelas
2004-11-11 18:22       ` Stephane Chazelas
2004-11-12  1:02         ` Bart Schaefer
2004-11-12  9:22           ` Stephane Chazelas
2004-11-11 16:07 ` Andy Spiegl
2004-11-11 17:26   ` Stephane Chazelas
2004-11-12 12:02 ` [tip] mouse and mouse-wheel support! Stephane Chazelas
2004-11-15 12:21   ` Stephane Chazelas
2004-11-15 13:14     ` Stephane Chazelas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.61.0411110943030.30994@toltec.zanshin.com \
    --to=schaefer@brasslantern.com \
    --cc=Stephane_Chazelas@yahoo.fr \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).