Skip to content
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: fix xterm opacity issue #8204

Merged
merged 1 commit into from
Jul 20, 2020
Merged

terminal: fix xterm opacity issue #8204

merged 1 commit into from
Jul 20, 2020

Conversation

vince-fugnitto
Copy link
Member

What it does

Fixes: #8158

The following pull-request addresses an issue present in newer versions of xterm which displayed a secondary cursor-like border caused by our global :focus class. The fix includes updating the styling of the xterm textarea to force an opacity consistent with their sources and resolve the UI error.

How to test

  1. start the application and open a new terminal (the terminal should behave like today with one cursor)
  2. update the xterm dependency to version ^4.8.0 and consequently update the yarn.lock as well (or use a resolution block to pin the version of xterm)
  3. identify if the issue is fixed for newer versions (secondary cursor)

Review checklist

Reminder for reviewers

Signed-off-by: vince-fugnitto vincent.fugnitto@ericsson.com

Fixes: #8158

The following commit addresses an issue with newer versions of `xterm`
which displayed a secondary cursor-like border due to our global
`:focus` class. The fix updates the xterm textarea to force an opacity
consistent with their sources.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
@vince-fugnitto vince-fugnitto added terminal issues related to the terminal ui/ux issues related to user interface / user experience labels Jul 20, 2020
@vince-fugnitto vince-fugnitto self-assigned this Jul 20, 2020
Copy link
Contributor

@Anasshahidd21 Anasshahidd21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes work nicely for me, when updating the xterm dependency to ^4.8.0.
testtt

I no longer see another rectangle with it.

Tested on Windows.

@kittaakos
Copy link
Contributor

I have shamelessly stolen the fix and applied it to a downstream project. I can confirm; it works great with xterm@4.8.1 in electron.

@kittaakos kittaakos self-requested a review July 20, 2020 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
terminal issues related to the terminal ui/ux issues related to user interface / user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"focus" class on terminal creates an empty rectangle
3 participants