zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: linuxtechguy@gmail.com
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: When RPROMPT != RPS1
Date: Mon, 31 Jul 2017 11:33:59 -0700	[thread overview]
Message-ID: <CAH+w=7Zod_Y6s1eE_WZoGrkSv+-Xu4F_VOWx-Z5Cps8fZdtafg@mail.gmail.com> (raw)
In-Reply-To: <CA+rB6GJM-Cz_QeKAFYLXow-FDUzzCbR=tdewjh3WjptM+CGGsw@mail.gmail.com>

On Mon, Jul 31, 2017 at 9:24 AM, Jim <linux.tech.guy@gmail.com> wrote:
>
> Built 5.3.1-dev-1 with your changes.  Upon testing, I found that the
> original
> issues of the right prompt is still there when switching between walters
> and either bart or adam2. The right prompt appears on the right side of
> second line of the prompt.

That's intentional.  It's up to each theme to determine how much of
the preexisting state should be replaced; if the theme doesn't
explicitly do anything with RPS1, then it remains when switching.

To get the effect you are after, you should be doing three steps:
  prompt walters
  prompt restore
  prompt adam2
(or whatever).  "prompt default" or "prompt off" would also be
possible as the middle step.

> But unlike previous versions of zsh where
>   unset RPROMPT
> was needed to remove the unwanted prompt, you now have to type
>   unset RPS1
> ??

Yes, the intent of the change to "walters" was to make it consistent
in that you can always "unset RPS1" rather than having to use one
parameter name for some prompts and the other name for others.  It
didn't otherwise affect anything

> BTW, was there any reason for changing walters' appearance? It
> now does underlining instead of the colors as in previous versions
> of zsh.

There has been no change to "prompt walters", it has always used %U/%u
in PS1 and color (default green) in RPS1.  However, the interpretation
of %U is specific to the termcap/terminfo definition of the current
terminal, so it's possible that's affecting something you see.


      reply	other threads:[~2017-07-31 18:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-20 17:08 Jim
2017-06-20 18:22 ` Jim
2017-06-21 17:16   ` Bart Schaefer
2017-06-22  9:17     ` Peter Stephenson
2017-06-23 20:07       ` Daniel Tameling
2017-06-24  3:37         ` Bart Schaefer
2017-06-24 20:09           ` Daniel Tameling
2017-07-28  2:53             ` Bart Schaefer
2017-07-31 16:24               ` Jim
2017-07-31 18:33                 ` Bart Schaefer [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='CAH+w=7Zod_Y6s1eE_WZoGrkSv+-Xu4F_VOWx-Z5Cps8fZdtafg@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=linuxtechguy@gmail.com \
    --cc=zsh-workers@zsh.org \
    /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).