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 27282 invoked from network); 17 May 2020 19:51:20 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 17 May 2020 19:51:20 -0000 Received: (qmail 6696 invoked by alias); 17 May 2020 19:51:07 -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: 24847 Received: (qmail 3854 invoked by uid 1010); 17 May 2020 19:51:07 -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.3/25814. spamassassin: 3.4.4. Clear:RC:0(65.121.55.42):SA:0(-2.6/5.0):. Processed in 3.902822 secs); 17 May 2020 19:51:07 -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: multipart/alternative; boundary="Apple-Mail=_06162EBA-E7C3-49CF-9CB8-3F27BACE93E2" Subject: Re: Prompts with emoji issues Date: Sun, 17 May 2020 13:50:26 -0600 References: <00DD587E-134E-46AE-8416-DB858F6ABD06@covisp.net> <2475C365-C62B-48DE-AC8A-3866E2DAEEEC@covisp.net> <2066CB5D-FC4B-49CE-893A-A430D933C425@covisp.net> To: zsh-users@zsh.org In-Reply-To: <2066CB5D-FC4B-49CE-893A-A430D933C425@covisp.net> Message-Id: <062FFA20-B1CE-40DC-9B9A-F57315542A1F@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 --Apple-Mail=_06162EBA-E7C3-49CF-9CB8-3F27BACE93E2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 14 May 2020, at 12:18, Lewis Butler wrote: > That works as expected, so the problem is a plugin or OMZ Spoke to soon, while the prompt is working ok on my Mac, it is not = working on the FreeBSD machine. I stripped out all the zsh and plugins = from my .zshrc and have this: # cat ~/.zshrc export PATH=3D/usr/local/bin:$PATH HYPHEN_INSENSITIVE=3D"true" ENABLE_CORRECTION=3D"true" COMPLETION_WAITING_DOTS=3D"true" # PROMPT # Have tried %3G and %4G function toon { echo -n "%{=F0=9F=91=B9%2G%}" } setopt PROMPT_SUBST PROMPT=3D'$(toon)%F{blue]%}%n@%m%f %F{green}%}#%f ' RPROMPT=3D'%F{green}%}[%T] %f[%~] ' source ~/.zshaliases source ~/.zshfunctions source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh fpath=3D(/usr/local/share/zsh-completions $fpath) source = /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh Which results in a prompt: =F0=9F=91=B9lbutlr@mail #_ [13:37] [~]=20 Where _ is the cursor position. So, once again the space after the # is being eaten. If I remove the $(toon) from PROMPT, it works as expected. I did find a very old note (Jan 2014) about a similar issue when using = tmux (which I use) but the note said that calling tmux -u (which I do) = avoids this issue. = > # grep sshf .zshaliases: alias sshf=3D'ssh -t tmux -u new-session -A -s mail' --=20 =C9=B9=D7=9F=CA=87nq=D7=9F tel:+1.303.219.0564 --Apple-Mail=_06162EBA-E7C3-49CF-9CB8-3F27BACE93E2--