'Rendering strange in vscode terminal with oh my posh v3

I have optimized my terminal with oh-my-posh v3. It works fine in last vscode version and also in windows terminal, but seems strange in current vscode.

VS Code Terminal:

vscode terminal

Windows Terminal:

windows terminal

Anybody has this problem?



Solution 1:[1]

Solution

  1. Open VS Code Settings via Ctrl+,
  2. Search for the item "Terminal > Integrated: Minimum Contrast Ratio"
  3. Set the value to 1

Integrated: Minimum Contrast Ratio

Explanation

VS Code v1.41 introduced the minimum contrast ratio feature where it dynamically changes the foreground of terminal text to meet a specified contrast ratio. However, in the latest update (v1.66), they changed to the default value to 4.5.

(Source: GitHub issue #146406)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1