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

Abnormal color #182

Closed
yyy33 opened this issue Jul 13, 2022 · 7 comments
Closed

Abnormal color #182

yyy33 opened this issue Jul 13, 2022 · 7 comments

Comments

@yyy33
Copy link

yyy33 commented Jul 13, 2022

Hello, my line number and the color of the current line and the current column seem to be displayed abnormally, the terminal I use is xterm, how should I set it?

2022-07-13_20-23

@nullchilly
Copy link
Member

Hmm I don't have this issue on xterm. Maybe you didn't set your ~/.Xresources color correctly?

Are you using tmux? Check your color configuration

@yyy33
Copy link
Author

yyy33 commented Jul 13, 2022

Hmm I don't have this issue on xterm. Maybe you didn't set your ~/.Xresources color correctly?

Are you using tmux? Check your color configuration

I'm also using tmux, how should I set the color of tmux or xterm to use this theme properly

@nullchilly
Copy link
Member

nullchilly commented Jul 13, 2022

What's the output of echo $TERM?

I tested xterm and tmux with no configuration and it works fine.

You can try :set notermguicolors | Catppuccin mocha to test if it's a true color issue. In that case try updating xterm (My version is 372-2) and tmux (My version is 3.3_a-2)

@EdenEast
Copy link
Collaborator

By default tmux says to your terminal that it is screen without 256 color support. In your tmux config make sure to set the default terminal value to 256.

set -g default-terminal "screen-256color"

In your .Xresources set your terminal name to to state 256 color

XTerm*termName: xterm-256color

@nullchilly
Copy link
Member

nullchilly commented Jul 15, 2022

I used zsh which is why $COLORTERM is truecolor by default. Sorry for not taking shell into account

Anyway enabling true color is documented on the xterm arch wiki

@yyy33 Please update us if you solved the issue!

@yyy33
Copy link
Author

yyy33 commented Jul 15, 2022

echo $TERM

The value is xterm-256color,This value is always the same whether I open tmux or not
@nullchilly

@nullchilly
Copy link
Member

nullchilly commented Jul 16, 2022

I have added this in the readme section

@yyy33 The value should not be the same when you open tmux, it should be tmux-256color instead. Do not set the TERM variable from your ~/.bashrc or ~/.bash_profile or similar file. The terminal itself should report the correct TERM to the system so that the proper terminfo file will be used.

Edit ~/.Xresources and add the line XTerm.termName: xterm-256color. Then run xrdb merge ~/.Xresources & in your terminal.

Please read through https://wiki.archlinux.org/title/Xterm#Configuration this is not an issue with the colorscheme and you should make some effort on your end.

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

3 participants