Terminal-Icons icon indicating copy to clipboard operation
Terminal-Icons copied to clipboard

Icons not displayed correctly in PS 7 terminal nor in windows terminal

Open eliassal opened this issue 3 years ago • 22 comments

After installing the icons, I fire a new powershell 7 terminal but icons does not display correctly

Expected Behavior

icons expected to display according to items in LS command

Current Behavior

See snapshot below in windows terminal as well as powersll 7 terminal

Your Environment

  • Module version used: installed today from PSGallery
  • Operating System and PowerShell version: Win10 , Powershell 7.2.0

TerminalIcons

eliassal avatar Mar 07 '22 16:03 eliassal

Yeah i have the same issue

Zakauchocolat avatar Mar 10 '22 14:03 Zakauchocolat

Same issue here.

Decimation avatar Mar 13 '22 17:03 Decimation

It's working for me on Windows 11 with PS7 and Windows Terminal

image

Have you guys installed and selected a Nerd Font to use?

Windows Terminal: Settings > Profiles > Powershell > Appearance > Font Face

image

Powershell 7: Right Click on Title Bar > Properties > Font

image

rbullers avatar Mar 16 '22 18:03 rbullers

@rbullers I'm already using a Nerd Font.

WindowsTerminal_PNZeVLVcvG

The glyphs display, but with artifacts:

WindowsTerminal_gPPG87Ozm4

WindowsTerminal_nfaBU0ETzd

This happens regardless of zoom settings, font settings, different fonts, etc.

Decimation avatar Mar 16 '22 19:03 Decimation

@Decimation Do you experience the same behaviour when running Powershell directly?

rbullers avatar Mar 17 '22 09:03 rbullers

@Decimation Do you experience the same behaviour when running Powershell directly?

Yes.

Decimation avatar Mar 17 '22 09:03 Decimation

@Decimation I think your issue is with Nerd Fonts or Oh my posh - rather than a Terminal-Icons issue.

rbullers avatar Mar 17 '22 09:03 rbullers

@Decimation I think your issue is with Nerd Fonts or Oh my posh - rather than a Terminal-Icons issue.

That's what I've been thinking. I'm guessing it's something to do with font rendering, kerning, antialiasing, etc. Any ideas?

Decimation avatar Mar 17 '22 10:03 Decimation

@Decimation Which Nerd Font are you using and which version of oh-my-posh do you have? Will see if I can reproduce.

rbullers avatar Mar 17 '22 12:03 rbullers

conhost_6xmksnGSe2

I've tried InconsolataLGC NF, Inconsolata NF, Consolas NF, Roboto Mono NF, and a few other fonts.

oh-my-posh version is 7.37.2

Decimation avatar Mar 17 '22 12:03 Decimation

@Decimation

So it appears I have the same exact issue when using just pwsh.exe

image

However, when using Windows Terminal with a configured profile for pwsh.exe, everything works as expected.

image

Do you have a profile setup for Powershell in Windows Terminal? You should see something similar in your drop down..

image

rbullers avatar Mar 17 '22 13:03 rbullers

Yes, my Windows Terminal is already configured accordingly.

Decimation avatar Mar 17 '22 13:03 Decimation

I think wt.exe is the recommended terminal to use instead of conhost.exe. The screenshot showing the issue looks like conhost.exe, @Decimation .

mattcargile avatar Mar 23 '22 20:03 mattcargile

@Decimation @eliassa @mattcargile I have been facing the same issue in my configuration after I upgraded Oh-My-Posh and Terminal-Icons recently. Icons for a directory on the prompt don't appear correctly. Please suggest where to look to for a possible misconfiguration.

image

shortthirdman avatar Aug 05 '23 18:08 shortthirdman

@shortthirdman @mattcargile @eliassal:

After revisiting this, I still have the same issues as I originally described here.

Fresh install of oh-my-posh, up-to-date modules, etc. Windows Terminal is configured correctly, and the NF font I'm using is Consolas NF.

WindowsTerminal_2023-08-05_(13h59m31s)_MFh18UwmYJ

However, Terminal-Icons (appears) to work, and if I remember correctly, this is nothing new.

WindowsTerminal_2023-08-05_(14h06m11s)_NLC9AIGUVt

I haven't bothered trying to fix the issues since my initial bug report and the fresh install just now, so I can't offer any help, sorry.

Decimation avatar Aug 05 '23 19:08 Decimation

@Decimation Looks like some font icon names have got changed or likewise. The developer of this module can only comment on the same. I am seeing this icon issue recently after I have upgraded to the latest versions of Oh-My-Posh and Terminal-Icons keeping my initial configurations intact. @devblackops Please comment your thoughts.

shortthirdman avatar Aug 05 '23 19:08 shortthirdman

Got it resolved. Please head to JanDeDobbeleer/oh-my-posh 's #4129

shortthirdman avatar Aug 05 '23 20:08 shortthirdman

I tried installing the latest version of Caskadia Cove Nerd Font but still some common icons are not displayed - others are: image

ndeeH avatar Aug 06 '23 12:08 ndeeH

for me I was setting a nerd font as a default, but hadn't realised another font was applied to the Powershell 7 appearance, which was overriding the default. If I'd opened the settings.json that might have been easier to spot.

Another issue I'd had was by copying a file over a cloud drive it had renamed it slightly by removing the first character of my theme filename which was a ".".

nickwelsh1 avatar Aug 29 '23 13:08 nickwelsh1