zsh-workers
 help / color / mirror / code / Atom feed
From: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>
To: "'Daniel Lyons'" <fusion@nmt.edu>, zsh-workers@sunsite.dk
Subject: RE: colors & tab completion
Date: Fri, 7 Sep 2001 12:22:40 +0400	[thread overview]
Message-ID: <002801c13776$42c686a0$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <20010907021111.B14003@nmt.edu>

> 
> PROMPT="${fg[magenta]}%n${fg[white]}@${fg[green]}%m ${fg[blue]}%C \
> ${fg[white]}%(#.=>.->) "
...
> anyway, that all works fine.  the problem is that when one presses
> tab multiple times to activate automenu, this is what gets
> displayed:
> 
> "username@host directory -> filename.ext1                     ext2"
> 




You need to tell zsh that these are escapes (and not counted in prompt
length calculation):

%{...%}
     Include a string as a literal escape sequence.  The string within
     the braces should not change the cursor position.  Brace pairs can
     nest.

i.e. you need

PROMPT="%{${fg[magenta]}%}...

-andrej


      reply	other threads:[~2001-09-07  8:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-07  8:11 Daniel Lyons
2001-09-07  8:22 ` Borsenkow Andrej [this message]

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='002801c13776$42c686a0$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=fusion@nmt.edu \
    --cc=zsh-workers@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).