From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2633 invoked from network); 14 May 2020 09:51:50 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 14 May 2020 09:51:50 -0000 Received: (qmail 26605 invoked by alias); 14 May 2020 09:51:34 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24831 Received: (qmail 3062 invoked by uid 1010); 14 May 2020 09:51:34 -0000 X-Qmail-Scanner-Diagnostics: from mail.covisp.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25807. spamassassin: 3.4.4. Clear:RC:0(65.121.55.42):SA:0(-2.6/5.0):. Processed in 4.383304 secs); 14 May 2020 09:51:34 -0000 X-Envelope-From: lbutler@covisp.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at covisp.net designates 65.121.55.42 as permitted sender) From: Lewis Butler Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Prompts with emoji issues Date: Thu, 14 May 2020 03:50:52 -0600 References: <00DD587E-134E-46AE-8416-DB858F6ABD06@covisp.net> To: Zsh Users In-Reply-To: Message-Id: <2475C365-C62B-48DE-AC8A-3866E2DAEEEC@covisp.net> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Qmail-Scanner-2.11: added fake MIME-Version header MIME-Version: 1.0 On 13 May 2020, at 21:54, Bart Schaefer = wrote: > On Wed, May 13, 2020 at 2:26 PM Lewis Butler = wrote: > echo -n =E2=80=9C%(=F0=9F=91=B9%2G%}=E2=80=9D > Firstly, if that's a literal copy-and-paste, you've written percent = open-paren rather than percent open-brace. Typo. > Assuming that's not the problem ... You mentioned having a similar = occurrence but with a different emoji on your Mac. Different emoji = characters might need different numbers of "glitch", e.g., on the Mac = the emoji might occupy only one position, so you need only %1G (or just = %G). Also on different terminals the same emoji might occupy different = numbers of positions, though that's less likely. Same terminal emulator, same behavior, different emojis. I have setups = for =F0=9F=91=B9, =EF=A3=BF, and =F0=9F=A5=A7 (though I use the pi so = rarely I am not sure it has the same problem. Currently, I always lose = the space after the # Whit this #v+ function toon { echo -n =E2=80=9C%(=F0=9F=91=B9%2G%}=E2=80=9D } PROMPT=3D$'$(toon) %{$fg_bold[red]%}%n@%m %{$fg_bold[green]%}# ' =F0=9F=91=B9 root@mail #cd /var/log =F0=9F=91=B9 root@mail #pwd /var/log #v- If I remove the space after the $(toon) in PROMPT I get =F0=9F=91=B9root@mail #pwd Still no final space. > There's also the possibility of interference by something you haven't = mentioned, such as an RPROMPT setting. That is the entirety of the file, barring comments. > You haven't told us the version(s) of zsh under which you encountered = this -- it's possible there was something related that has since been = fixed. oh-my-Zsh updates frequently so if I do not currently have the latest = version I am no more than a day or two out of date. Zsh versions are = "5.7.1 (x86_64-apple-darwin19.0)" and "zsh 5.8 = (i386-portbld-freebsd12.1)", but this problem has been consistently = inconsistent since last fall. > In any case I can't reproduce a problem with only the PROMPT from your = first message. That=E2=80=99s what I was afraid of. I=E2=80=99ll try playing around = with a new user account on the off chance there is some odd setting in = my Terminal.app preferences. --=20 =C9=B9=D7=9F=CA=87nq=D7=9F tel:+1.303.219.0564