zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.66k stars 1.15k forks source link

Colorschemes not working in PowerShell #1589

Open vincentmathis opened 4 years ago

vincentmathis commented 4 years ago

Description of the problem or steps to reproduce

Despite true color support in PowerShell the colorschemes aren't even looking close to what they should. They mostly only show 3 different colors.

256 color in PowerShell:

Capture1

True color (part of the 16 million printed):

Capture4

Env variables MICRO_TRUECOLOR=1 and COLORTERM=truecolor:

Capture2

How it looks in micro:

Capture3

Specifications

Commit hash: c51f849 OS: Windows 10 Terminal: PowerShell

zbalkan commented 2 years ago

What color scheme do you use for Terminal and oh-my-posh? It seems like Oh-my-posh themes change terminal color definitions for the named ones (grey, blue, etc.) so any CLI application is affected by the color tones overridden by it. It needs further investigation but my initial diagnosis is it's oh-my-posh to blame.

However, it is by the design of Windows Terminal, and it needs a workaround, not an actual solution until Windows Terminal color settings have changed.

PS: I came here to open a ticket about this exact issue, then I tried to give some more effort and wrote the comments. I might be wrong of course.

vincentmathis commented 2 years ago

I use One Half Light / One Half Dark theme in Microsoft Terminal.

I use pshazz for my terminal prompt with it's default theme.

And i set micros theme to "simple" because it works the best with my terminal colorscheme.