uE0B0 working in VSC Terminal but not cmd.exe
Should look sm like diz
but its
41 Replies
You need the Powerline version of the font you use for your terminal
I just installed Nerd Fonts but it prints a square in cmd.exe
I also imported it
What font is your terminal set to use?
Lucido Console as default one
but I got a program that imports a custom .ttf file
Yeah just installing nerdfonts isn't sufficient, you need to change the font the terminal is using.
You can just double-click the ttf file to install it.
can't I do it using that script
Probably
I literally mentione dthat I imported it into my console already
Are you using Windows Terminal?
cmd.exe...
So cmd.exe is the program, but the terminal shell it's hosted in can be either Windows Terminal or conhost.exe.
Conhost is the old crappy one, and Windows Terminal is thee new really good one.
yes I know
but IW ant it in cmd,exe
If you want conhost to work, you need to change your font to one that is a Powerline font.
Like this.
But why anyone would use conhost is beyond me.
It sucks
When I run cmd.exe it opens in Winodws Terminal because I set it to be the default host:
i see
hmm
Anyway, you just need to choose the right font
Like in my screenshot I'm choosing the one with PL in the name so I get the Powerline symbols
Like that little github branch symbol comes from the PL font
oh dang it
this is gonna be fun
looks like no powerlines for now 🙂
What do you mean?
that I was excited to make those
powerlines you get me
Just install a Powerline font like Cascadia Code PL
hold on lemme try
Where did u find Cascadia Code PL
I'm looking for it
GitHub
GitHub - microsoft/cascadia-code: This is a fun, new monospaced fon...
This is a fun, new monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal. - GitHub - microsoft/cascadia-code: This is a fun...
It's in the zip file along with all of the other variants
u were right
🎉
Thank you so much man
I really appreciate it
Now switch to Windows Terminal and PowerShell like a sane person 🙂
I like to make CLI apps for cmd.exe
idk why
I mean, PowerShell is going to be the same experience but just superior in almost every way.
ye I get u
great
oh by the way @mtreit how do I enable ANSI Escape codes using C#?
I remember writing this years ago
the code kinda looks cursed now
why did I even use volatile there
but basically, you call some weird windows API function to enable vt100 mode for the given console
Thanks :))