Conemu: Powerline character width issues

Created on 20 Jun 2016  路  13Comments  路  Source: Maximus5/ConEmu

Versions

ConEmu build: 160612 x64, 160619 x64
OS version: Windows 10 x64
Used shell version: cygwin + zsh

Problem description

Certain unicode characters are being rendered with the wrong width, especially those from Powerline fonts. This is causing incorrect character rendering and alignment issues with my prompt.

Possibly related to #722.

Additional files

160609
conemu-160609

160612, 160619
conemu-160612

Most helpful comment

Confirmed working in build 160710. Recommend closing issue - @MetricMike?

All 13 comments

To be sure, what is 283-ko-grid...?
Why it's centered in last version?

That is the name of the active git branch I'm working on. The name is irrelevant but it should be right-aligned as in the first screenshot

Also running into the same issue. For context, I think jgoz and I are both using prezto themes (I'm pretty sure he's using sorin's and I'm on paradox) that take advantage of zsh's right-hand prompt. The way I've seen it described, most themes that take advantage of a right-hand and left-prompt on the same line do math in a before block to calculate the needed padding.

I've tried several prompts that only use the left-hand prompt or a "static" combined prompt (I'm making up terms here, pls forgive) and they don't appear to have this issue. The Sorin and Paradox themes use a "dynamic" combined prompt that I think is redrawing the entire line with new padding everytime it receives a character.

image

Sorin and Paradox are disagreeing on how big the line actually is, but neither are rendering spaces at the correct width.

Sorin:
image

Paradox:
image

Using zsh with prezto/yadr
Using Windows 10 x64 Build 14367.

It would be nice to know, how to configure zsh prompt. Or maybe you are using standard zsh prompt?

I've been researching the most of the night. It looks like zsh provides some functionality is being provided by zsh, some is being provided by oh-my-zsh, and more by prezto (a fork/rewrite of oh-my-zsh) but the documentation and commit messages on any of those 3 projects aren't explicit about what's going on.

I can confirm that this problem does not exist in the 20160609 build, but it also doesn't occur in a couple (like 3, so not exhaustive) of prompts written against oh-my-zsh instead of prezto.

I also didn't answer the question. You can switch between prezto prompts by prompt THEME_NAME, so like I was typing 'prompt paradoxandprompt sorin` before those screenshots.

I was also using the default install of the swkp/dotfiles repository which is targeted at Mac OS X, but works pretty well on Windows/Linux minus some symbols.

I have oh-my-zsh installed. What shall I do next?

2016-06-22_10-02-16

@MetricMike and I are using Prezto rather than Oh-my-zsh, which is why prompt is not working for you. But I think you might be able to see the same behaviour with Oh-my-zsh.

As per the Themes docs:

Can you please do Dump screen... and post here links? SystemMenu/Debug

I'm interested in those lines, where symbol > exists and [time] or branch is shifted from the right to left.

Confirmed working in build 160710. Recommend closing issue - @MetricMike?

Confirmed working for me too on 160710. Sry about the extra confused emoji, there's no way to remove github reactions.

Thanks @Maximus5!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pyhedgehog picture pyhedgehog  路  3Comments

DrMerlin picture DrMerlin  路  4Comments

marfillaster picture marfillaster  路  6Comments

altbdoor picture altbdoor  路  4Comments

imalos picture imalos  路  5Comments