How do I get rid of these vertical lines before the triangles?

Hello! I have changed my PROMPT variable for bash and zsh in the following:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">TRIANGLE</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">$'uE0B0'
</span><span style="color:#323232;">COLOR_1</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"#089B89"
</span><span style="color:#323232;">COLOR_2</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"#FCFCFC"
</span><span style="color:#323232;">COLOR_3</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"#3B4045"
</span><span style="color:#323232;">PROMPT</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"%K{$</span><span style="color:#323232;">COLOR_1</span><span style="color:#183691;">} %n@%M%F{$</span><span style="color:#323232;">COLOR_1</span><span style="color:#183691;">}%K{$</span><span style="color:#323232;">COLOR_2</span><span style="color:#183691;">}$</span><span style="color:#323232;">TRIANGLE</span><span style="color:#183691;">%F{$</span><span style="color:#323232;">COLOR_1</span><span style="color:#183691;">} %~%F{$</span><span style="color:#323232;">COLOR_2</span><span style="color:#183691;">}%K{$</span><span style="color:#323232;">COLOR_3</span><span style="color:#183691;">}$</span><span style="color:#323232;">TRIANGLE</span><span style="color:#183691;">%f%k " </span><span style="font-style:italic;color:#969896;">#%K{#1BA58A}%F{black}$TRIANGLE
</span>

and I’m using the Noto Sans Mono fonts, but this happens on other fonts as well.

How can I get rid of the white lines before the triangle? should I use a specific font?

tubbadu,

replying to @yote_zip because the direct reply failed:

I ctrl+F “Noto” and as it returned 0 results I just assumed they weren’t there… thank you!! however, these fonts, as many other, still have this line issue. only FiraMono fonts didn’t:

https://lemmy.kde.social/pictrs/image/3237aab7-8d31-4879-9f61-bc6521847899.png

https://lemmy.kde.social/pictrs/image/c3670cc2-a368-413d-ac2f-978c6ce6f9f9.png

yote_zip,
@yote_zip@pawb.social avatar

Very strange. I wonder if it’s not a font glyph issue but a font-width issue or something. Beyond getting Nerd Fonts I’m not sure what else to try, sorry!

tubbadu,

I tried installing xfce4-terminal, and there it is displayed well with any font, so I guess it’s a Konsole problem… I’ll try to ask in the KDE community, thanks for your help!

Scraft161,
@Scraft161@iusearchlinux.fyi avatar

They happen because the font is not patched property, your best bet is getting the nerd fonts and trying those, popular fonts will generally look nicer.

tubbadu,

I installed FiraCode Nerd Fonts, FiraMono Nerd Fonts and Hack Nerd Fonts from here, and only FiraMono was able to not display that vertical line. I suspect the line is caused by the “Smooth fonts” setting in the profile settings > appearance, because unsetting it hides the line in other fonts (but the fonts looks terrible). thanks for the help!

fmstrat,

I could do it in a few seconds with GIMP.

tubbadu,

😜

JoeKrogan, (edited )
@JoeKrogan@lemmy.world avatar

Its been a while since I had a setup with the prompt like that but I think you may need a patched font for it.

stackoverflow.com/…/triangular-background-for-bas…

bbbhltz,
@bbbhltz@beehaw.org avatar

Have you tried with the Nerd Fonts?

yote_zip,
@yote_zip@pawb.social avatar

www.nerdfonts.com/font-downloads

Noto Nerd will contain Noto Sans/Serif/Mono etc. Notably it’s hard to ctrl+f on that page since most of them don’t have text names, so just scroll to ‘N’.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • [email protected]
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • SuperSentai
  • feritale
  • KamenRider
  • All magazines