Open willmcgugan opened 3 months ago
Tweaking the line height in settings improves things a little, but some artifacts remain.
The artifacts look similar to an older version of xterm.js. If that's what you are using, the latest version should fix most of these issues.
We're using Alacritty with custom rendering using GPUI.
We're using Alacritty with custom rendering using GPUI.
That's encouraging. Alacritty does a good job of rendering TUIs, so this is hopefully a configuration issue.
Looks like a duplicate of
Looks like a duplicate of #15542
Sure enough, if I switch to IBM Plex Mono with line height "standard" in my settings, it renders almost perfectly:
Try this in your settings @willmcgugan, just to confirm as we are in transition to using IBM Plex by default IIRC.
"terminal": {
"font_family": "IBM Plex Mono",
"line_height": "standard"
}
REPL outputs will also have to use IBM Plex Mono and buffer_line_height
set to "standard"
as well to get good rectangles:
A definite improvement, but there are still glitches.
Note how the lines between the buttons extend over the scrollbar, and the thin cracks at the bottom of the scrollbar.
These issues are common when the terminal uses glyphs to render box character. Most terminals will render box characters separately to avoid these artifacts.
I think Alacrity does have this capability. Here's a screenshot from Alacrity:
I know its subtle -- I've been staring at these things for 3 years!
Check for existing issues
Describe the bug / provide steps to reproduce it
The builtin terminal displays some rendering glitches when used with TUIs.
Block graphics don't line up with neighboring cells. Tested with a Textual app.
You should be able to see it by installing Textual and running the following command:
Environment
Zed: v0.146.3 (Zed) OS: macOS 14.5.0 Memory: 16 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
This is Zed:
https://github.com/user-attachments/assets/5dfbc0a6-b8f2-4b7a-8d5e-92d25ceb67b1
This is iTerm2 (similar on most other terminals)
https://github.com/user-attachments/assets/f6eccb09-8e2d-47e4-9c38-709cf78bc6f1
If applicable, attach your Zed.log file to this issue.
Zed.log