Rendering strange in vscode terminal with oh my posh v3

Viewed 1250

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?

1 Answers

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)

Related