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

Inverted colors repeat first character of the string #3314

Closed
2 tasks done
dcalhoun opened this issue Dec 7, 2018 · 9 comments
Closed
2 tasks done

Inverted colors repeat first character of the string #3314

dcalhoun opened this issue Dec 7, 2018 · 9 comments

Comments

@dcalhoun
Copy link
Contributor

dcalhoun commented Dec 7, 2018

  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: macOS 10.14.1 (18B75)
  • Hyper.app version: 2.1.0-canary.3
  • Link of a Gist with the contents of your .hyper.js: TBD
  • Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): n/a
  • The issue is reproducible in vanilla Hyper.app: Have not tested it yet.

Issue

Originally reported in #3255, strings that are highlighted (i.e. the background/foreground colors are inverted), the first character of the string is repeated instead of the entire string.

The following is example output from running jest#23.6.0.

Expected (macOS Terminal)

jest-inverted-correct

Actual (hyper#2.1.0-canary.3)

hyper-inverted-repeated-characters

@chabou
Copy link
Contributor

chabou commented Dec 7, 2018

Oh... Very nice related analyze. Thank you!
I was supposing that It was only concerning pasted chars (and acceptable to release).

Certainly a xterm issue.

@dcalhoun dcalhoun changed the title Inverted colors repeats first character Inverted colors repeat first character of the string Dec 7, 2018
@chabou
Copy link
Contributor

chabou commented Dec 7, 2018

I noticed that inverted color doesn't work at all if background is not opaque:
image

@dcalhoun
Copy link
Contributor Author

dcalhoun commented Dec 7, 2018

@chabou I wonder if it is related to the fact that Jest inverts the "default terminal font color"? It's possible that it is unrelated and still an issue with xterm. I have no idea.

@chabou
Copy link
Contributor

chabou commented Dec 7, 2018

Repeated char is certainly related to their dynamic atlas.
But I can't reproduce it in VSCode.

So maybe, Hyper initializes xterm badly.

@chabou
Copy link
Contributor

chabou commented Dec 7, 2018

Repeated char on paste doesn't happen with xterm v3.7.0

Transparent inverted char still happens but happened with previous hyper release.
Understandable because xterm is using background color and hyper force transparent background colorfor term if user bg color is not opaque (and set background color to its own body). It prevents some overlapping between non-opaque layers.

@edsu
Copy link

edsu commented Dec 8, 2018

I'm seeing this when using the Unix utilityless as well:

% less deletes.csv

screen shot 2018-12-08 at 7 02 48 am

I tried disabling my theme and color configuration but still see the same behavior.

@olivier-w
Copy link

olivier-w commented Dec 10, 2018

I'm seeing the same thing every time I paste something in Hyper. Here's an example, running Hyper 2.1.0-canary.3 (canary) on 10.14.1

hyper-canary

@olivier-w
Copy link

Did a little digging, looks like https://github.com/xtermjs/xterm.js/releases/tag/3.9.0 merged 30mins ago, would that fix this issue? Based on this comment: #3316 (comment)

@chabou
Copy link
Contributor

chabou commented Dec 10, 2018

@olivier-w thank you! I will try it ASAP!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants