randy3k / Terminus

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

Bug: Prompt Coloring from Starship not applied #344

Open chrisgrieser opened 2 years ago

chrisgrieser commented 2 years ago

I am using Starship for my prompt and isn't properly colored. It is, however, properly colored in other terminal apps. I can't tell whether the issue lies within Starship or Terminus, so I created an issue at both (starship issue: https://github.com/starship/starship/issues/3627)

I tried different theme or changing the Terminus 256 color settings, but no luck.


The prompt in Terminus

Screenshot 2022-02-18 18 04 26

The prompt in my regular Terminal (Hyper)

Screenshot 2022-02-18 18 05 10
randy3k commented 2 years ago

Did you set the unix_term to "xterm-256color"? https://github.com/randy3k/Terminus/blob/master/Terminus.sublime-settings#L74

chrisgrieser commented 2 years ago

@randy3k I did, and I also already did:

"256color": true,
"unix_term": "xterm-256color",
chrisgrieser commented 2 years ago

Okay, I could pin down the issue more or less. The issue occurs when using either a hex color or bold for starships's $style configurations. using only ansi colors and no bold fixes the prompt.

Still not sure whether this is a problem on Terminus' or on starship's side, but I think that should help you to narrow it down?

While the lack of hex colors isn't a big deal, the lack of bold is a bit annoying, especially the fact that starship in Terminus does not fail gracefully. So right now, I am using two different starship configs, one for Terminus, one for everything else. 🙈

benfrain commented 2 years ago

I'm seeing the same issue using Powerlevel10k. Prompt appears correct (colored) everywhere but Terminus where it is monochrome