Oh-my-posh3: After changing the themes wrong font is loaded?

Created on 17 Sep 2020  ·  18Comments  ·  Source: JanDeDobbeleer/oh-my-posh3

HEy,

i installed it like you provided but i guess the wring font is loaded.
Can you give me a hint what i am missing ?
grafik

bug windows

All 18 comments

Interesting. It seems the terminal doesn't support ANSI characters, I might have to check that on a Windows machine itself. I used to develop this on ConEmu initially where everything worked, but it seems that's not necessarily true everywhere. I'll see what needs to be done here. Can you provide some information on your current setup (terminal/os/..)?

Yeah sure. here is my current setup:
Windows 10 Enterprise
Version 1909

Windows Terminal
Version: 1.2.2381.0

PowerShell 7.0.3

I m using Windows Terminal which starts powershell which loads your Module (go-my-posh)

I can reproduce this. But the fix is annoyingly hard. It comes down to ANSI color codes not working out of the box, and I need to enable that from an application POV. Stay tuned.

Alright, keep up the good work!

Found the issue, will push a new version!

@Cruik you will also need Meslo LGM NF to have the icons which are set in the theme.

Almost there, the colors now render correctly but the prompt function is complaining on something.
image

Getting closer, found why the rendering of the colors was broken but that effectively ruins the characters...
image

Fix that too, but I don't like the fix for now. I'm going to have a clear look in the morning and push a working build at that time.

New version should be out ASAP. Can you confirm this now works on your machine as well?

getting the same error as you with the promptfunction
88 the handle is invalid

Ah yes. I forgot something obvious. That issue comes from a dependency where I did a fix locally, but then obviously I have to fork it and adjust 🤦🏻‍♂️

@Cruik I just published 0.4.1 with the fix, on my machine when removing all other versions and a fresh install, it works.

with the new version it works now on my machine.
The only character which is not displaying correctly is the arrow in the next line or am i missing there a font ?
grafik

i also noticed another missing character
the line above is the displayed line with go-my-posh
the line down under is from a terminal with oh-my-posh
grafik

Which font is that? I develop everything with MesloLGM NF. I'll update the README accordingly. You can tweak those settings easily by adjusting (or copy pasting the theme JSON, adjusting the icons and setting that file location as the theme. I really need to create that guide next.

i used the wront, blame on me...
i used Cascadia Code PL, with the MesloLGMNF it displays fine!

Thanks for your work and your help!

Thank YOU for trying this out and the donation! 🙏🏻

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fedeiglesias picture fedeiglesias  ·  4Comments

turtlebasket picture turtlebasket  ·  9Comments

audunn picture audunn  ·  6Comments

ozerty picture ozerty  ·  7Comments

catthehacker picture catthehacker  ·  4Comments