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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Colours different on different systems. #1648

Open
vext01 opened this issue Mar 6, 2024 · 1 comment
Open

馃悰 Colours different on different systems. #1648

vext01 opened this issue Mar 6, 2024 · 1 comment

Comments

@vext01
Copy link

vext01 commented Mar 6, 2024

Hi,

I've just been trying delta today. I got it all configured how I like it, copied the config to a remote system, and the colours all look different for some reason.

image

The screenshot shows the output of diff -u 1 2 | delta --color-only on an OpenBSD system (where it looks correct) and on a remote Debian system over ssh. The screenshots are inside tmux, but the output is still incorrect on Debian outside of tmux.

Any idea why?

My delta config:

[core]
    pager = "delta --color-only"

[delta]
    light = false
    theme = gruvbox-dark
    keep-plus-minus-markers = true
    file-style = "magenta normal"
    zero-style = "normal normal"
    plus-style = "green #26342c"
    plus-emph-style = "green #2b4134"
    minus-style = "red #342626"
    minus-emph-style = "#d95a5a #562222"
    true-color = always
@dandavison
Copy link
Owner

Hm, so this is the same terminal emulator and what differs is the delta executable and the fact that delta's output is coming over SSH, is that right?

I am not sure what the problem is, but my first impression is that it looks like 24bit color ("truecolor") is not being supported correctly in the panel on the right. Have you tried comparing the raw output by piping into cat -A or bat -A or a hexdump etc? Perhaps you can hone in on the problem by creating a file containing ANSI escaped text such that cating it to the terminal in the two contexts reproduces the difference?

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

2 participants