randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.37k stars 83 forks source link

Powerline promt glyphs and colors issue #343

Open AlfredJKwack opened 2 years ago

AlfredJKwack commented 2 years ago

Hi. First of all a big thanks for bringing this plugin to ST. Very convenient. I'm running into a small cosmetic issue with the setup though.

Machine: MacOS Shell: ZSH Particulars: oh-my-zsh with Powerline10k

Specifically I'm having trouble with:

Below is an illustration of the problem. Left hand column has the ST Terminus terminal up. Below it is the iTerm equivalent one. Second and Third columns show the config files of Terminus and ST respectively.

Screenshot 2022-02-13 at 17 24 28

Is there any way to get more control over the colors of the prompt from within Terminus? It looks like whatever I've set in the terminus theme_colors is being ignored. Are there more settings that I should be looking at?

Second issue, is the glyphs. I've seen this happen a long time ago in a VisualStudio release (see this gh issue). Is this something that Terminus could resolve for, assuming it's similar in cause?

If it matters, below are the specifics of the font in question.

    DejaVu Sans Mono Nerd Font Complete Mono.ttf:
      Kind: TrueType
      Valid: Yes
      Enabled: Yes
      Location: /Users/XXXXXX/Library/Fonts/DejaVu Sans Mono Nerd Font Complete Mono.ttf
      Typefaces:
        DejaVuSansMonoNerdFontCompleteM-Book:
          Full Name: DejaVu Sans Mono Nerd Font Complete Mono
          Family: DejaVuSansMono Nerd Font Mono
          Style: Book
          Version: Version 2.37
          Vendor: DejaVu fonts team
          Unique Name: DejaVu Sans Mono
Afrowave commented 2 years ago

Hey @AlfredJKwack,

Here is how my Terminus and iTerm look.

First, configure your Powerlevel10 at https://github.com/romkatv/powerlevel10k#configuration

Then add need to go into your ~/.zshrc:

ZSH_THEME="powerlevel10k/powerlevel10k"

AlfredJKwack commented 2 years ago

Hi @Afrowave,

My ~/.zshrc has the same line in there as would be expected since the iTerm and Terminus both show the p10k configured prompt. The oddity is the glyphs as well as the color not being the same.

Could you post your Terminus config? I'd be interested in which font you're using as well (and what your config line in ST for it is). Since there's icons in there I'm assuming you have one of the patched Nerd fonts set up.

Afrowave commented 2 years ago

Here goes for Terminus:

{
"theme": "cobalt2",
"view_settings": {
 "font_face": "Droid Sans Mono Nerd Font Complete",
},
"256color": true,
...
}

For Sublime Text:

{
"color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme",
"theme": "Cobalt2.sublime-theme",
"font_face": "Victor Mono Regular",
...
}
AlfredJKwack commented 2 years ago

Hi,

Thanks @Afrowave. I tried those out, that didn't have any real effect on the glyphs.

Screenshot 2022-02-15 at 08 52 04

Besides. Your own screenshots show the same issue, albeit less visibly. Here's a zoomed copy.

Screenshot 2022-02-15 at 08 53 25

Both my questions remain. How can I get color to be consistent between iTerm and Terminus? Is there somthing that can be done about the glyphs rendering?

AlfredJKwack commented 2 years ago

I did a bit more digging through the issues in this repo to see if there are areas that are already flagged .

There are more things at play here than I initially thought.

I think that about covers it.

Afrowave commented 2 years ago

Well done @AlfredJKwack,

I have added  font_size and "unix_term": "xterm-256color" until I was relatively happy with it.  I settled on what it looks like. Once I am through with squeezing all the juice out of Terminus, I might revisit the "looks". 

You have definitely gone further than I did.

meetajhu commented 1 month ago

These are the only settings for Terminus i've added. Make sure you have installed MesloLGS NF (Nerd font) as per powerlevel10k docs.

{
    "view_settings": {
        "font_face": "MesloLGS NF",
    }
}