vim Background Color Not Always Displaying Correctly (but works in conhost.exe) #16280

Open
opened 2026-01-31 05:02:36 +00:00 by claunia · 0 comments
Owner

Originally created by @matrdr on GitHub (Dec 27, 2021).

Windows Terminal version

1.11.3471.0

Windows build number

10.0.19044.0

Other Software

vim 8.1 (inside WSL)

Steps to reproduce

Open vim in WSL. A background color different to the terminal's background color shall be set (e.g. by using a colorscheme).
When trying the command :ls or :hi it is visible that the terminal's background color is visible in places where it should not be.

When trying to reproduce this using conhost.exe (the good old terminal) instead of Windows Terminal you may notice that the background works as expected there. Therefore it seems that something is handled differently in Windows Terminal.

Expected Behavior

image

Actual Behavior

image

Originally created by @matrdr on GitHub (Dec 27, 2021). ### Windows Terminal version 1.11.3471.0 ### Windows build number 10.0.19044.0 ### Other Software vim 8.1 (inside WSL) ### Steps to reproduce Open `vim` in WSL. A background color different to the terminal's background color shall be set (e.g. by using a colorscheme). When trying the command `:ls` or `:hi` it is visible that the terminal's background color is visible in places where it should not be. When trying to reproduce this using `conhost.exe` (the good old terminal) instead of Windows Terminal you may notice that the background works as expected there. Therefore it seems that something is handled differently in Windows Terminal. ### Expected Behavior ![image](https://user-images.githubusercontent.com/45005058/147497687-fc67d7c1-b7e4-4bde-b64c-bf41a92b441d.png) ### Actual Behavior ![image](https://user-images.githubusercontent.com/45005058/147497707-b1d47d28-7c7e-445f-988b-b29d3e23256f.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16280