* Missplaced rpromt when using colored prompt
@ 2001-06-06 10:13 Christian H. Stork
2001-06-06 10:19 ` Adam Spiers
0 siblings, 1 reply; 2+ messages in thread
From: Christian H. Stork @ 2001-06-06 10:13 UTC (permalink / raw)
To: zsh-workers
Hi everybody,
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.
I use a Debian testing/unstable system with the latest zsh-4.0.1 deb
package.
Thanks!
PS: Please cc me since I'm not on the list.
--
Chris Stork http://www.ics.uci.edu/~cstork/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Missplaced rpromt when using colored prompt
2001-06-06 10:13 Missplaced rpromt when using colored prompt Christian H. Stork
@ 2001-06-06 10:19 ` Adam Spiers
0 siblings, 0 replies; 2+ messages in thread
From: Adam Spiers @ 2001-06-06 10:19 UTC (permalink / raw)
To: zsh-workers; +Cc: Christian H. Stork
Christian H. Stork (cstork@ics.uci.edu) 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-06-06 10:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-06 10:13 Missplaced rpromt when using colored prompt Christian H. Stork
2001-06-06 10:19 ` Adam Spiers
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).