zsh-users
 help / color / mirror / code / Atom feed
From: DervishD <raul@pleyades.net>
To: Leon Mergen <leon@antrophia.com>
Cc: zsh-users@sunsite.dk
Subject: Re: Colored prompt problem
Date: Sun, 24 Nov 2002 19:36:33 +0100	[thread overview]
Message-ID: <20021124183632.GA46@DervishD> (raw)
In-Reply-To: <64953.213.116.100.36.1038163772.squirrel@www.antrophia.com>

    Hi Leon :)

> PROMPT=$(echo
> '%B%{\033[33m%}%n@\033[31m%}%m\033[39m%}:\033[32m%}[%~]\033[00m%}\033[34m%}[%h]\033[00m%}
> %# %b% ' )

    It lacks lots of '%{'. This is the reason it wraps badly. I
haven't the time to test where the lacking '%{' must go. I've put all
them at the beginning and it doesn't wrap bad.

    For every '%}' must be an opening '%{', and you must see the
rules (see the manual) for places in the PROMPT where you can and
cannot change the cursor position.

    Good luck ;))

    Raúl



      reply	other threads:[~2002-11-24 18:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-24 18:49 Leon Mergen
2002-11-24 18:36 ` DervishD [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=20021124183632.GA46@DervishD \
    --to=raul@pleyades.net \
    --cc=leon@antrophia.com \
    --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).