You are not logged in.

#1 2017-04-12 09:31:03

Jomik
Member
Registered: 2017-04-12
Posts: 2

Issue with unicode "eating" characters [Fish, Konsole]

I am having an issue with unicode characters in Konsole.
I've switched to fish shell and want to use the Chain theme
and the Nerd Font patched DejaVu Sans Mono
However, whenever I cd to a git repo, especially a dirty one, parts of the prompt disappear.
This is clearly due to the unicode characters "⎇" and "─".
I have an idea that it's due to these characters being wider than normal.
chain-prompt-issue
I expected "]" to be displayed after "master" like "[⎇ master]─"

Also, if I copy my prompt, I do get the "right" output in the clipboard, however echoing it in the terminal still gives this issue.
"[~/a/d/ddist]─[⎇ master]─[±]─>"

EDIT: It seems that if I have my cursor between the ⎇ and ], the display "warps" slightly to show the missing character, but erases the one beneath the cursor.
chain-echo-cursor-placement

Last edited by Jomik (2017-04-12 13:04:43)

Offline

#2 2017-04-12 12:38:41

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Issue with unicode "eating" characters [Fish, Konsole]

My only comment is, you are telling echo to echo "master-" and not "master]-". Does ls work properly to display the directory name or does it get it wrong too?


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2017-04-12 12:52:52

Jomik
Member
Registered: 2017-04-12
Posts: 2

Re: Issue with unicode "eating" characters [Fish, Konsole]

You are right, it looks like that, but, as you can see in the picture below, the character is actually there! ls works fine. The issue is with the prompt in fish swallowing a character. This seems to happen only in Konsole, so was hoping there was a fix. - It doesn't happen in Tilix, at least.
Updated my OP.

Last edited by Jomik (2017-04-12 13:08:54)

Offline

Board footer

Powered by FluxBB