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 18295 invoked from network); 13 May 2020 05:08:53 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 13 May 2020 05:08:53 -0000 Received: (qmail 16307 invoked by alias); 13 May 2020 05:08:44 -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: 24825 Received: (qmail 12107 invoked by uid 1010); 13 May 2020 05:08:44 -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 1.463305 secs); 13 May 2020 05:08:44 -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: Prompts with emoji issues Message-Id: Date: Tue, 12 May 2020 23:08:01 -0600 To: Zsh Users X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Qmail-Scanner-2.11: added fake MIME-Version header MIME-Version: 1.0 I have the following theme: # cat bsd-candy.zsh-theme function toon { echo -n =E2=80=9C=F0=9F=91=B9" } PROMPT=3D$'%{$fg[magenta]%}$(toon)%{$reset_color%} = %{$fg_bold[green]%}%n@%m %{$fg_bold[blue]%}%#%{$reset_color%} =E2=80=98 # This works fine in nearly all cases, but often when editing long lines, = the space after the # in the prompt gets eaten, and editing the line = will have an offset of one character. I think it only happens when the line length exceeds the terminal = application=E2=80=99s width. Am I doing something wrong here or is this an issue with my terminal = emulator (Terminal.app in macOS in this case). (I have a similar theme fo my Mac commanline that is nearly identical = and has the same issues: # cat apple-candy.zsh-theme function toon { echo -n "=EF=A3=BF" } PROMPT=3D$'%{$fg[magenta]%}$(toon)%{$reset_color%} = %{$fg_bold[green]%}%n@%m %{$fg_bold[blue]%}%#%{$reset_color%} =E2=80=98 # --=20 =C9=B9=D7=9F=CA=87nq=D7=9F tel:+1.303.219.0564