ConEmu
ConEmu copied to clipboard
PowerShell 7 weird blocks of color in prompt with oh-my-posh
Versions
ConEmu build: 210314 x64 OS version: Windows 20H2 x64 Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): PowerShell 7.1.3
Problem description
Wrong color blocks before prompt fields with oh-my-posh when starting pwsh
directly as task (even with the -NoProfile
switch), but when pwsh
is run from the {cmd} task within ConEmu those blocks blend in with the rest of the prompt as normal. Looks correct in both Windows Terminal and Fluent Terminal but not ConEmu, so as far as I can tell it seems to be a ConEmu issue.
Steps to reproduce
- Install PowerShell from Windows Store
- Change task {PowerShell} to only contain the command
pwsh
- Run task
- Install oh-my-posh module, import and set theme to any available (theme in screenshots is powerlevel10k_classic)
- Prompt displays
Actual results
Expected results
Additional files
I had the same with another oh-my-posh theme. I've switched to Windows Terminal for most things (apart from Admin logon).
WT seems to have mostly caught up with ConEmu (for the features I use) and does a few things (eg clickable URLs) that ConEmu doesn't.
seeing the same issue oin windows server 2012r2, so no option to switch to wt. Strangely normal powershell works fine
I had the same issue the solutions was to go into Setting > Features > Colors: In there you disable "TrueMod (24bit color) support" in the Graphic enhancement group box.
Worked for me, its worth a try if you facing the same issue.