You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use of box-shadow to create the underline cursor can sometimes not render correctly. Here is a screenshot.
Details
Browser and browser version: Chromium Version 114.0.5735.106 (Official Build) snap (64-bit)
OS version: Ubuntu 22.04
xterm.js version: 5.2.1
Steps to reproduce
Unfortunately, I haven't been able to create a minimal reproducible test case. This started when we updated from blueprintjs 4.x to 5.x but I haven't been able to track down exactly what changed that triggered the issue. For the time being, the bug can be seen at https://beta.pybricks.com. Just click in the terminal area to focus it.
Suggested solution
From what I've read about box-shadow, aliasing issues like this happen sometimes. It seems like we could make a more robust cursor using border instead of box-shadow. This is the workaround I have come up with for now:
Since updating to Blueprintjs 5.x we can get aliasing artifacts on the
cursor due to bad rendering of box-shadow. This overrides it with
border instead.
xtermjs/xterm.js#4580
Since updating to Blueprintjs 5.x we can get aliasing artifacts on the
cursor due to bad rendering of box-shadow. This overrides it with
border instead.
xtermjs/xterm.js#4580
dlech
added a commit
to dlech/xterm.js
that referenced
this issue
Jul 5, 2023
In rare cases, box-shadow can cause aliasing artifacts on the top and
sides of the cursor box when only the bottom should be filled in to
create an underline.
This replaces the box-shadow style with border-bottom which should be
pixel perfect in all cases.
Fixes: xtermjs#4580
In rare cases, box-shadow can cause aliasing artifacts on the top and
sides of the cursor box when only the bottom should be filled in to
create an underline.
This replaces the box-shadow style with border-bottom which should be
pixel perfect in all cases.
Fixes: xtermjs#4580
The use of
box-shadow
to create the underline cursor can sometimes not render correctly. Here is a screenshot.Details
Steps to reproduce
Unfortunately, I haven't been able to create a minimal reproducible test case. This started when we updated from blueprintjs 4.x to 5.x but I haven't been able to track down exactly what changed that triggered the issue.
For the time being, the bug can be seen at https://beta.pybricks.com. Just click in the terminal area to focus it.Suggested solution
From what I've read about
box-shadow
, aliasing issues like this happen sometimes. It seems like we could make a more robust cursor usingborder
instead ofbox-shadow
. This is the workaround I have come up with for now:The text was updated successfully, but these errors were encountered: