Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: remove OFF flags for display attributes in zattr
- X-seq: zsh-workers 51275
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: remove OFF flags for display attributes in zattr
- Date: Wed, 04 Jan 2023 02:28:37 +0100
- Archived-at: <https://zsh.org/workers/51275>
- In-reply-to: <CAH+w=7Y-ciij_JP6BVSDfmYvpLY7ceHuOzOoS8CbdvgCLQLrjg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <81616-1672338153.037786@CNij.sb4i.9Ck4> <33364-1672788155.511966@XhH4.5XEP.IFzg> <CAH+w=7Y-ciij_JP6BVSDfmYvpLY7ceHuOzOoS8CbdvgCLQLrjg@mail.gmail.com>
Bart Schaefer wrote:
> Just confirming that this won't interfere with (for example) leaving
> an attribute turned on at the end of PS1 so that the command line
> input has a different appearance than the command output? I believe
> this is a somewhat popular trick.
For PS1, yes that still works.
However, looking again, effects from RPS1 are not preserved correctly.
Those are also used if left on but it looks like where attributes were
left on in both PS1 and RPS1, PS1 takes precedence and if you leave an
attribute on in the left prompt, turning it off on the right has no
effect on the prompt text. Does that sounds right?
That should be possible to restore but I'm done for today.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author