-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[V2] Color degredations #2294
Comments
@mike-engel Had not noticed that error, it could be due to xterm.js 🤔 I'll take a look at this problem. |
I have noticed this too. I switched to a true-color vim theme in 1.x due to #155 , this does not work in 2.x I am using this hyper-theme to get the solarized color palette |
@welnanick We are working to solve the problem of colors. |
My colours configuraion barely has any impact in Windows Bash. I can only seem to get the window background colour working - tried the solarized theme but it also doesn't seem to work. It seems to always force the default bash colours. |
I'm having the same issue with fish, some colors just don't work. |
fwiw I'm using fish as well. Could be an issue with how fish represents colors |
I'm not using fish, and I am also having these issues, so unfortunately I don't think its related to fish :/ |
To be clear, this issue is related to 256 colors not true color. |
ok 3-byte color mode in script is 24-bits Truecolor. This is not supposed to work yet. So everything is ok with color script on Mac (in last canary with xterm3 too). @mike-engel Can you try to reproduce your vim issue with our last canary? (with and without your hyper plugins) |
@chabou It looks like the latest canary is much better, but for some reason my vim config is still using the incorrect colors. It could be my vim config, but it is curious how different it looks with the same config. The color test, however, looks much better 😄 ScreenshotsLeft: Hyper 1.4.8 VimColor test |
@mike-engel can you confirm me that running vim with your config in Terminal or iTerm looks like hyper v1.4.8? |
@chabou running iterm2 stock (minus base16 ocean dark from chris simpson) with my vim theme produces what I'd expect, which matches hyper 1.4.8. Let me know if you'd like me to try anything else! If it helps, here's my vim config: https://github.com/mike-engel/vimfiles/blob/master/vimrc iTerm2 v3.1.5 |
Thank you for your screenshot. I tried to dig deeper into this issue and this is what I found: When And I found that your hyper theme
|
If you want to keep theme colors, I think you could use something like https://github.com/chriskempson/base16-shell with |
Thanks @chabou. I'll take a look at my configs tonight and try to update them. |
On my setup this issue is not limited to vim, the colors beyond 16 are not right. hyper.js
2.0.0 canary-141.4.8 |
The main difference is for Bright_White and colors > 15. I think that Bright_White is ok: https://github.com/winneon/hypersixteen/blob/master/src/HyperSixteen.js#L31 There is indeed some "regressions" with colors > 15, but this is exactly how it is looks like with iTerm. So for me, there is no other regression than dropped truecolor support. |
strange, for me in iTerm colors > 15 are working with |
+1. My vim is horrendously ugly in 2.0.0-canary.14, but looked fine in 1.4.8. This is my last barrier to switching from iTerm2. |
👍 I used to have colorscheme on Definition: https://gist.github.com/nkzawa/970f75de0f9f8b05524d99452dfabd54 |
For anyone using the hyper-solarized-dark plugin, I was having an issue with the background color but fixed it with this PR -> ghosh/hyper-solarized-dark#20 Not related to the main issue here, but it at least made vim look less bad w/ solarized dark :) |
I had emulated Sublime's Blackboard theme. Here's a screenshot of version 1 on the left and version 2 on the right: Version 2 is extremely dim. |
This issue is still occurring. I have very similar issues as @colinrcummings |
@tehp this seems to be an issue with the hyper-snazzy plugin (which it looks like you're using). See sindresorhus/hyper-snazzy#41 Workaround I'm using now, found in the above issue, is adding this to my .hyper.js config |
Using |
I'm having this issue with the latest version of Hyper too. No plugins. Vim colour scheme showing wrong colours |
Any progress on the issue? Does anyone has any temporary solutions to the problem? I am trying to use one-dark.vim. However, as mentioned in the issue color mapping is incorrect. |
Fixed on xterm.js 🎉 xtermjs/xterm.js#1895 |
Doesn't look like it's in a stable release yet though - https://github.com/xtermjs/xterm.js/releases/tag/3.13.0-beta1 |
Just downloaded hyperterm 3 to give it a shot. I tweet a lot of visual programs, some of them don't look good on hyperterm b/c of this issue, eg: https://twitter.com/josh_cheek/status/1116321447234940928
On iTerm2, it looks like this (the weird line is b/c ss is partway through a screen update): On Hyperterm3 (3.0.0) it looks like this: On the upside, it is super smooth. |
@JoshCheek Will have a look into this. |
@JoshCheek Looks like it's fixed in latest xterm.js when updated inside Hyper, so we just need to make sure it makes its way into the WebGL renderer. |
https://github.com/xtermjs/xterm.js/releases/tag/3.13.0 ^ Looks like xtermjs just reached 3.13. Stable release that should hopefully (theoretically?) make it into hyper's fork :) Edit: changed link to actual release notes |
Is there any indication as to when this issue will be fixed? |
Edit: I found |
Try with a CI build from canary, otherwise please open a new issue |
Issue
While moving to 2.0, I've noticed that colors are not behaving properly anymore. In programs like Vim the colors between 2.x and 1.x are vastly different. While debugging, I also noticed that the color representations between the two versions seem to be much different.
Referring to this gist and this script, you can see from my screenshots that there are some differences.
This may be an issue with xterm.js, so if it is, let me know and I'll move over there. Here's my vim config as well. It's important to note that that exact vim config looks ok on 1.x, but not ok on 2.x.
Please let me know if there's any info you need. If you have some general ideas on where to start, I can work on a PR. Thanks!
EDIT: It seems like xterm.js doesn't support truecolor, which may be part of the problem with the color script, but doesn't explain the vim differences.
Screenshots
Vim
Color script
2.x
1.x
The text was updated successfully, but these errors were encountered: