zsh-users
 help / color / mirror / code / Atom feed
From: Budi <budikusasi@gmail.com>
To: Roman Perepelitsa <roman.perepelitsa@gmail.com>
Cc: Grant Taylor <gtaylor@tnetconsulting.net>, zsh-users@zsh.org
Subject: Re: Help fix Zsh shell command prompt error or stranee
Date: Sun, 20 Aug 2023 17:50:39 +0700	[thread overview]
Message-ID: <CAH0GyZDdZzmd7_khSjf888g_y+dofc9KxdVDy23w78x7JG-hrQ@mail.gmail.com> (raw)
In-Reply-To: <CAN=4vMpzOYiUkYUgJdS7X8puHfQoYVZk_30A=mPa68N1K=fd_Q@mail.gmail.com>

PS1=$(echo -e "$DIRSB\e[41;1;37m%~\e[44;1;33m\n%%\e[m ")


DIRSB variable is none or sort of
$(echo -e "${\e[41;1;37mWORD\e[m\n\r}")

(just in tool https://github.com/abdulbadii/smart-directories-navigation)

On 8/20/23, Roman Perepelitsa <roman.perepelitsa@gmail.com> wrote:
> On Sun, Aug 20, 2023 at 1:15 AM Grant Taylor <gtaylor@tnetconsulting.net>
> wrote:
>>
>> Proper use of %{ and %} sequences to keep ZLE from counting the
>> non-printing / control characters helps a lot.
>
> In the vast majority of cases one can replace %{...%} with a
> first-class %-sequence. For example, instead of %{\033[31m%} one can
> use %F{red}.
>
> Roman.
>
>


  reply	other threads:[~2023-08-20 10:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-19  0:35 Budi
2023-08-19  2:01 ` Grant Taylor
2023-08-20  6:30   ` Roman Perepelitsa
2023-08-20 10:50     ` Budi [this message]
2023-08-20 17:11       ` Bart Schaefer
2023-08-20 15:54     ` Grant Taylor
2023-08-22  6:26       ` Roman Perepelitsa
2023-08-23  4:27         ` Grant Taylor
2023-08-19 16:09 ` Bart Schaefer

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=CAH0GyZDdZzmd7_khSjf888g_y+dofc9KxdVDy23w78x7JG-hrQ@mail.gmail.com \
    --to=budikusasi@gmail.com \
    --cc=gtaylor@tnetconsulting.net \
    --cc=roman.perepelitsa@gmail.com \
    --cc=zsh-users@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).