-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminal rendering shows space between lines with zoomlevel:1 #18588
Comments
Must be a mac-specific issue, what's in your settings.json? |
I discovered that this doesn't happen at window zoomlevel 0. |
Does setting On my Linux machine it works until zoom level is 4. |
There's a couple settings that don't work on my setup. 1 and -1 both have the same issue. 4 works on my system. It could be some combination of my retina screen with the zoom level etc which causes some rounding error. |
Yes that's likely the case |
Will likely be fixed when #9958 is implemented |
So what's happening in this bug? When I set lineheight=1, and I used a font like PragmataPro, the text should fit perfectly within one line correct? But with lineheight=1, (zoom level 0 or 1), you can see that text is clipped. Is this related?
Then, as originally discussed setting lineheight to 1.2 causes there to be lines between the background:
I think the the clipping at line height 1 is unrelated but not correct, but it has me wanting to increase the lineheight, which then surfaces the originally reported bug. When the terminal draws "background color", shouldn't it be filing in the additional line space below it? |
The way this will be fixed is by implementing "virtual selection" upstream xtermjs/xterm.js#207 It's the next terminal feature I want to work on and it will allow xterm.js to completely control the selection model, how it's rendered and how it's copied which will fix a huge amount of issues with the terminal. Here's the list of impacted issues it will touch when I last checked: (moved the list to #9958 (comment)) |
Fixed in #9958, xtermjs/xterm.js#670 |
cc @Tyriar
My terminal application draws background color, and this is how it looks. I believe this is a bug.
The text was updated successfully, but these errors were encountered: