Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.53k stars 571 forks source link

PowerShell 7 weird blocks of color in prompt with oh-my-posh #2301

Open DessertArbiter opened 3 years ago

DessertArbiter commented 3 years ago

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

  1. Install PowerShell from Windows Store
  2. Change task {PowerShell} to only contain the command pwsh
  3. Run task
  4. Install oh-my-posh module, import and set theme to any available (theme in screenshots is powerlevel10k_classic)
  5. Prompt displays

Actual results

image

Expected results

image

Additional files

ConEmu-con-17328.log ConEmu-srv-17328.log

Praful commented 3 years ago

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.

viceice commented 2 years ago

seeing the same issue oin windows server 2012r2, so no option to switch to wt. Strangely normal powershell works fine

Arthur-Carbonari commented 1 year ago

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.