vscode: Black blocks in terminal at every underscore
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: 1.70
- OS Version: Browser (Firefox, maybe Chrome)
Steps to Reproduce: Not sure.
Reported originally in Gitpod:
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 23 (14 by maintainers)
Commits related to this issue
- Properly clear underscore glyph's background See microsoft/vscode#158497 — committed to Tyriar/xterm.js by Tyriar 2 years ago
- Update xterm This fixes a rendering issue with underscore when using some fonts Fixes #158497 — committed to microsoft/vscode by Tyriar 2 years ago
- Update xterm This fixes a rendering issue with underscore when using some fonts Fixes #158497 — committed to code-oss-dev/code by Tyriar 2 years ago
I was seeing this earlier in the week doing TPIs on Linux… but now I don’t today so seems fixed.
Found the issue. This https://github.com/xtermjs/xterm.js/blob/b68f82078b5f6fb336afd39a98685e489cca7c79/addons/xterm-addon-webgl/src/atlas/WebglCharAtlas.ts#L563 clearRect ends up drawing a #000000FF background instead of the natural color, so the full temp canvas texture is used which explains the odd size of the rectangle.
I think I can confirm the conclusion reached by @yume-chan. When using the desktop app in Ubuntu 22.04, the font
Droid Sans Mono
presents the same behavior. Using other fonts the underscore is rendered correctly.It’s called “DejaVu Sans Mono” version 2.37
I’m using macOS at the moment but I asked a couple of colleagues to test.
layers.acceleration.disabled
totrue
) doesn’t help.terminal.integrated.gpuAcceleration
off or setting it to canvas fixes the issue.This is on Lenovo laptops with Intel graphics.
lspci
reports this on the Fedora machine:And this on the Ubuntu one:
This is a snippet from
glxinfo
’s output:Hope this helps!