zsh-users
 help / color / mirror / code / Atom feed
* Niggling little problem with a theme
@ 2019-12-11 21:35 Lewis Butler
  2019-12-11 22:18 ` Perry Smith
  2019-12-12  0:28 ` Bart Schaefer
  0 siblings, 2 replies; 5+ messages in thread
From: Lewis Butler @ 2019-12-11 21:35 UTC (permalink / raw)
  To: zsh-users

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 🍰 and 🍎 for rPi and Macs as well as this one for my FreeBSD machines).

👹 root@mail # cat ~/.oh-my-zsh/themes/bsd-candy.zsh-theme
function toon {
  echo -n "👹"
}


PROMPT=$'%{$fg[magenta]%}$(toon)%{$reset_color%} %{$fg_bold[green]%}%n@%m %{$fg_bold[blue]%}%#%{$reset_color%} '
RPROMPT=$'%{$fg[blue]%}[%T] %{$reset_color%}%{$fg[white]%}[%~]%{$reset_color%} ‘
---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’s Terminal.app, but this issue also happens when I am on the console on the freeBSD machine.



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

end of thread, other threads:[~2019-12-12 10:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-11 21:35 Niggling little problem with a theme Lewis Butler
2019-12-11 22:18 ` Perry Smith
2019-12-12  0:28 ` Bart Schaefer
2019-12-12 10:30   ` Lewis Butler
2019-12-12 10:44     ` 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).