prezto_powerline icon indicating copy to clipboard operation
prezto_powerline copied to clipboard

Separator characters

Open Anrock opened this issue 11 years ago • 11 comments

Hi, just moved from oh my zsh to prezto and installed your theme. Well, there same issue with separator characters like in powerline\agnoster and similar themes from oh my zsh - arrow symbols aren't displayed correctly. Fortunately this theme could be fixed just like others: by replacing separator characters with \ue0b0 for left and \ue0b2 for right separator.

Also, a little question\feature request: could the blocks for branch and commit hash be disabled for directories that aren't under git control?

Anrock avatar Jul 15 '14 11:07 Anrock

Tried the suggestion of changes the character codes. Those aren't working for me on OSX 10.9.4 what OS are you seeing the display issues on?

That would be a good feature indeed.

davidjrice avatar Jul 16 '14 16:07 davidjrice

It's 10.9.4 with iTerm2. Didn't tried it on standard terminal app.

Anrock avatar Jul 16 '14 20:07 Anrock

Also, same issue on linux machine on termite 7, lxterminal 0.1.11 and xfce4-terminal 0.6.3.

Anrock avatar Jul 18 '14 08:07 Anrock

What about the font used in iTerm? Can't replicate.

Perhaps a before / after screenshot.

davidjrice avatar Jul 21 '14 14:07 davidjrice

iTerm2, antialised "12pt DejaVu Sans Mono for Powerline" as regular font and antialised "11pt DejaVu Sans Mono for Powerline" as Non-ASCII font. Both from this repo: https://github.com/Lokaltog/powerline-fonts

Here screen before fix: http://rghost.net/57017498 And after fix: http://rghost.net/57017516

Anrock avatar Jul 21 '14 14:07 Anrock

Looks fine for me with that font too. What is your Character Encoding set to in iTerm? I was able to kindof replicate this by changing it to something other than UTF-8

davidjrice avatar Jul 21 '14 17:07 davidjrice

Character encoding is UTF-8. Locale is russian, though.

Anrock avatar Jul 23 '14 07:07 Anrock

Hello,

I submitted a patch (Issue #2) that has this fix. According to Powerline documentation, the codes changed:

Warning

The code points have changed in this version of Powerline! This means that you either have to patch your font again, or change the glyphs Powerline uses in your user configuration.

And

Now it says that

Powerline stores all special glyphs in the Unicode Private Use Area (U+E000-U+F8FF).

I hope it helps! :D

TheZoc avatar Jul 28 '14 08:07 TheZoc

@TheZoc nice, thanks. @davidjrice there is a fix already, so i guess it's fine to close this issue as fix'd.

Anrock avatar Jul 29 '14 15:07 Anrock

This was fixed by pull req #2, that was merged already.

ericbn avatar Jul 13 '16 17:07 ericbn

And it only took 2 years to get merged! :)

TheZoc avatar Jul 13 '16 17:07 TheZoc