Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Missplaced rpromt when using colored prompt
- X-seq: zsh-workers 14743
- From: Adam Spiers <adam@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Missplaced rpromt when using colored prompt
- Date: Wed, 6 Jun 2001 11:19:53 +0100
- Cc: "Christian H. Stork" <cstork@xxxxxxxxxxx>
- In-reply-to: <20010606031301.B3037@xxxxxxxxxxx>; from cstork@xxxxxxxxxxx on Wed, Jun 06, 2001 at 03:13:03AM -0700
- Mail-followup-to: zsh-workers@xxxxxxxxxxxxxx, "Christian H. Stork" <cstork@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010606031301.B3037@xxxxxxxxxxx>
- Reply-to: Adam Spiers <adam@xxxxxxxxxx>
Christian H. Stork (cstork@xxxxxxxxxxx) wrote:
> when using the following settings
>
> PROMPT='%B^[[31m%n@%m%#^[[30m%b '
> RPROMPT='%~'
>
> the rprompt keeps a margin of 8 characters from the right. This looks
> like a bug to me.
It's not a bug; you just forgot to wrap the escape sequences in
%{ ... %}
>From the docs:
%{...%}
Include a string as a literal escape sequence. The string within
the braces should not change the cursor position. Brace pairs can
nest.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author