oh-my-posh V3 over SSH (or even just on VIM exit) causes strange colors in terminal #472
-
Using oh-my-posh V3 between all Win10 machines (all with updated versions of OMP V3) in Powershell Core 7 can cause the colors to render incorrectly. I'm using a customized theme (based on the default JanDeDobbeleer theme), but I don't think that's what's causing the colors to change in general. Here's what I'm observing (with some examples): Windows Terminal + Powershell Core 7 + OMP, just navigating = correct colors VsCode Terminal + Powershell Core 7 + OMP, just navigating = correct colors VsCode Terminal + Powershell Core 7 + OMP, after running VIM = old terminal colors go bad after VIM exit. Fresh terminal lines are fine. Windows Terminal + Powershell Core 7 + OMP, after running VIM = old terminal colors go bad after VIM exit. Fresh terminal lines are fine. Windows Terminal + Powershell Core 7 + OMP + SSH = correct colors Windows Terminal + Powershell Core 7 + OMP + SSH, after running VIM = old terminal colors go bad after VIM exit. Fresh terminal lines are fine. VsCode Terminal + Powershell Core 7 + OMP + SSH = always bad colors Not sure if this is an OMP V3 bug or not, but if it isn't, is there a way to fix it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@mikeev261 this is indeed caused by Windows Terminal and/or VIM. There's already a discussion about this. To be clear, this only happens inside the Windows console hosts. The standard Powershell progress bar (not the new preview one) has the same effect of ruining the colours. So something that needs fixing there. |
Beta Was this translation helpful? Give feedback.
@mikeev261 this is indeed caused by Windows Terminal and/or VIM. There's already a discussion about this.
To be clear, this only happens inside the Windows console hosts. The standard Powershell progress bar (not the new preview one) has the same effect of ruining the colours. So something that needs fixing there.