catppuccin / xresources

🐦 Soothing pastel theme for Xresources
MIT License
59 stars 3 forks source link

unexpected colors in xterm (compared with kitty) #6

Closed mmngreco closed 1 year ago

mmngreco commented 1 year ago

On the left is kitty and xterm on the right. As you can see the colors aren't the same

macha.resources

*background: #1E1E2E
*foreground: #CDD6F4

! black
*color0: #45475A
*color8: #585B70

! red
*color1: #F38BA8
*color9: #F38BA8

! green
*color2: #A6E3A1
*color10: #A6E3A1

! yellow
*color3: #F9E2AF
*color11: #F9E2AF

! blue
*color4: #89B4FA
*color12: #89B4FA

! magenta
*color5: #F5C2E7
*color13: #F5C2E7

! cyan
*color6: #94E2D5
*color14: #94E2D5

! white
*color7: #BAC2DE
*color15: #A6ADC8

is this the expected behaviour?

nekowinston commented 1 year ago

Hey there :wave:

The colour definitions are the same across both configs, I've just checked it to make sure.

What's the output of your echo $TERM? IIRC you might have to set TERM=xterm-256color

mmngreco commented 1 year ago

IIRC you might have to set TERM=xterm-256color

Exactly!

nekowinston commented 1 year ago

Did that resolve your issue? Please close the issue if it did 🙂

mmngreco commented 1 year ago

ah no, sorry, I meant that your guess was right.

To be clear, this is the output of $TERM:

$ echo $TERM
xterm-256color
nekowinston commented 1 year ago

Ah, alright, thanks for the clarification.

Currently not near a Linux machine, I'll try to check this out later – since the definitions are correct, I'm guessing there has to be some setting that fixes this.

mmngreco commented 1 year ago

awesome, thank you for your time ;-) I love your work on this theme, guys!

nekowinston commented 1 year ago

@mmngreco sadly I can't reproduce this issue - it seems to correctly set the colors for me. My Xresources config is the same as mocha.resources, with these additions:

XTerm.termName: xterm-256color
XTerm.vt100.locale: false
XTerm.vt100.utf8: true
XTerm.vt100.backarrowKey: false
XTerm.ttyModes: erase ^?
mmngreco commented 1 year ago

@nekowinston thank you for your answer. I've used your config but it didn't fix the issue

image

I'm using zsh on Pop!_os and i3 in case this may helps.

Any idea if there's another variable that may cause this ? I've checked my .profile , .bashrc, .bash_profile, .zshrc and I didn't find anything.

mmngreco commented 1 year ago

I was checking this more in details and I think that the problem is on kitty but xterm. I thought that the right color were those from kitty because I've started using there in the first time but aren't (I think).

Closing this and thanks for your support @nekowinston ;-)