Open arunbhardwaj opened 2 years ago
It seems that ConEmu approximates the colors set by Oh My Posh to the ones declared in ConEmu's color palette. Here's ConEmu's CMD prompt compared to Microsoft Terminal's CMD prompt, where MS Terminal uses the colors defined by Oh My Posh. Both ConEmu and Microsoft Terminal use the same color palette.
@arunbhardwaj did you find a fix for this? I'm experiencing the same thing
@thecouchcoder sadly, I never did. I tried to see how ConEmu was importing/using colors, but as C++ is not my forte, it just wasn't worth the time investment. I had swapped to Cmder which still uses ConEmu under the hood, but it also had color issues and became similarly buggy. Now, I just use Windows Terminal.
Versions
ConEmu build: 220418 x64 OS version: Windows 11 Pro x64 version 21H2 build 22000.613 (but I've also reproduced this bug on a separate machine running Windows 10 Pro version 21H1 build 19043.1586) Used shell version: git-bash
Problem description
Using ConEmu with oh-my-posh themes results in inaccurate colors. I've tested this with the default themes packaged with oh my posh as well as my own customized theme (see attached gist). My theme when loaded in both the powershell terminal and git bash terminal displays the correct colors. However, when loaded into ConEmu powershell & git-bash, the colors are no longer accurate. I've searched through the open issues and docs for both oh-my-posh and ConEmu. I believe this to be a bug with ConEmu as:
The color differences are most easily noticed when looking at the leftmost side of the shell prompts. There is no orange color in ConEmu after oh-my-posh is running. They somehow get converted to shades of red.
Steps to reproduce
eval "$(oh-my-posh init bash --config ~/path/to/myposhtheme.json)"
within git-bash shell in ConEmuActual color
hex: f40e17
Expected color
hex: edc809
Additional files
ConEmu Settings & myposhtheme,
Screenshots: ConEmu after oh my posh ConEmu before oh my posh
Powershell Accurate Colors Git-bash Accurate Colors