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

Different color scheme in Alacritty #220

Closed
dikiaap opened this issue Aug 25, 2018 · 6 comments
Closed

Different color scheme in Alacritty #220

dikiaap opened this issue Aug 25, 2018 · 6 comments
Labels
documentation question Further information is requested

Comments

@dikiaap
Copy link

dikiaap commented Aug 25, 2018

The color scheme works well in LXTerminal, but in Alacritty where the color scheme becomes slightly reduced.

ss

Default:

ss2

In the default theme, the orange and magenta color is also reduced.

@sharkdp sharkdp added the question Further information is requested label Aug 27, 2018
@sharkdp
Copy link
Owner

sharkdp commented Aug 27, 2018

Thank you for the feedback.

I can not reproduce this. I am using alacritty 0.1.0 with this configuration.

Can you please post your alacritty config and check whether $COLORTERM is set to truecolor?

@sharkdp
Copy link
Owner

sharkdp commented Aug 27, 2018

Actually, it seems that alacritty does not set the $COLORTERM variable. I accidentally started alacritty from terminator, which is why I had $COLORTERM set.

Could you try to export COLORTERM=truecolor and see if that fixes the colors?

In any case, something seems wrong with your alacritty configuration. There shouldn't be any background colors. Even in 8bit mode (no truecolor support) with interpolated colors, it looks fine for me (although differences are noticeable).

@dikiaap
Copy link
Author

dikiaap commented Aug 27, 2018

@sharkdp Yes, It's not set in here. I just tried exporting that and it works now. Thank you!

@sharkdp
Copy link
Owner

sharkdp commented Aug 27, 2018

I'm going to reopen this because there should probably be another way to detect truecolor support for a given terminal.

If not, we should at least document the behavior concerning the COLORTERM environment variable.

For reference: https://gist.github.com/XVilka/8346728

@sharkdp
Copy link
Owner

sharkdp commented Aug 28, 2018

I have added a "Troubleshooting" section to bats README and I have opened a ticket for alacritty to discuss the support for the COLORTERM variable (corresponding PR).

I don't think there is anything more we can do here as there doesn't seem to be a way to detect whether or not bat is running inside alacritty.

@sharkdp sharkdp closed this as completed Aug 28, 2018
@sharkdp
Copy link
Owner

sharkdp commented Sep 17, 2018

The upstream ticket has been solved.

Until the fix has been released, you can also set COLORTERM in your alacritty.yml:

env:
  # ...
  COLORTERM: truecolor

which is probably better than exporting it in your shells init file, because that would affect other terminals as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants