zsh-users
 help / color / mirror / code / Atom feed
* Prompts with emoji issues
@ 2020-05-13  5:08 Lewis Butler
  2020-05-13  6:52 ` Bart Schaefer
  0 siblings, 1 reply; 20+ messages in thread
From: Lewis Butler @ 2020-05-13  5:08 UTC (permalink / raw)
  To: Zsh Users

I have the following theme:

# cat bsd-candy.zsh-theme
function toon {
  echo -n “👹"
}

PROMPT=$'%{$fg[magenta]%}$(toon)%{$reset_color%} %{$fg_bold[green]%}%n@%m %{$fg_bold[blue]%}%#%{$reset_color%} ‘
#

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’s 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 ""
}

PROMPT=$'%{$fg[magenta]%}$(toon)%{$reset_color%} %{$fg_bold[green]%}%n@%m %{$fg_bold[blue]%}%#%{$reset_color%} ‘
#

-- 
ɹןʇnqן
<mailto:lbutler@covisp.net>
tel:+1.303.219.0564




^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2020-05-20  5:17 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13  5:08 Prompts with emoji issues Lewis Butler
2020-05-13  6:52 ` Bart Schaefer
2020-05-13 16:47   ` Roman Perepelitsa
2020-05-13 21:14   ` Lewis Butler
2020-05-13 21:26     ` Lewis Butler
2020-05-14  3:54       ` Bart Schaefer
2020-05-14  9:50         ` Lewis Butler
2020-05-14 12:13           ` Lewis Butler
2020-05-14 17:55           ` Bart Schaefer
2020-05-14 18:18             ` Lewis Butler
2020-05-17 19:50               ` Lewis Butler
2020-05-17 20:39                 ` Bart Schaefer
2020-05-18  3:41                 ` Bart Schaefer
2020-05-18 12:23                 ` Lewis Butler
2020-05-19  0:26                   ` Bart Schaefer
2020-05-19 13:21                     ` Lewis Butler
2020-05-19 13:54                       ` Roman Perepelitsa
2020-05-19 22:05                         ` Lewis Butler
2020-05-19 23:20                           ` Daniel Shahaf
2020-05-20  5:16                           ` Roman Perepelitsa

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).