From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 6ca42b22 for ; Wed, 11 Dec 2019 21:36:48 +0000 (UTC) Received: (qmail 24473 invoked by alias); 11 Dec 2019 21:36:38 -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: 24517 Received: (qmail 15182 invoked by uid 1010); 11 Dec 2019 21:36:38 -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.1/25656. spamassassin: 3.4.2. Clear:RC:0(65.121.55.42):SA:0(-2.6/5.0):. Processed in 3.899592 secs); 11 Dec 2019 21:36:38 -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: Niggling little problem with a theme Message-Id: <6AC48A70-FD29-4E88-9BD1-B189922E2793@covisp.net> Date: Wed, 11 Dec 2019 14:35:59 -0700 To: zsh-users@zsh.org X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Qmail-Scanner-2.11: added fake MIME-Version header MIME-Version: 1.0 I have a theme that is a modification of the candy.zsh-theme that uses = an emoji for the prompt (I have a version for three different systems = using the =F0=9F=8D=B0 and =F0=9F=8D=8E for rPi and Macs as well as this = one for my FreeBSD machines). =F0=9F=91=B9 root@mail # cat ~/.oh-my-zsh/themes/bsd-candy.zsh-theme function toon { echo -n "=F0=9F=91=B9" } PROMPT=3D$'%{$fg[magenta]%}$(toon)%{$reset_color%} = %{$fg_bold[green]%}%n@%m %{$fg_bold[blue]%}%#%{$reset_color%} ' RPROMPT=3D$'%{$fg[blue]%}[%T] = %{$reset_color%}%{$fg[white]%}[%~]%{$reset_color%} =E2=80=98 ---EOF Works fine in nearly all cases, but occasionally when I am trying to = edit a command line, the space after the prompt disappears and it makes = it quite difficult to edit as the command that appears on the screen is = shifted one character off. Is this just an artifact of using multi-byte character? (My terminal is normally macOS=E2=80=99s Terminal.app, but this issue = also happens when I am on the console on the freeBSD machine.