Bat: Color difference over ssh

Created on 24 May 2020  ยท  3Comments  ยท  Source: sharkdp/bat

What version of bat are you using?
bat 0.15.1

Describe the bug you encountered:
The colorscheme appears different depending on if I'm connected via ssh (even localhost)

A subtle difference:
Screenshot from 2020-05-23 22-50-37

A more obvious difference when using delta with the TwoDark colorscheme:
Screenshot from 2020-05-23 22-29-03
Screenshot from 2020-05-23 22-28-59

I think my colors are set appropriately, since these test seem to work fine over ssh

Screenshot from 2020-05-23 22-53-35

Describe what you expected to happen?
The colorscheme matches.

How did you install bat?
apt-get, homebrew, GitHub release, etc.
nixpkgs


[paste the output of info.sh here]

 ~                                                      
โฏ bash info.sh 
system
------

**$ uname -srm**
Linux 5.6.13-300.fc32.x86_64 x86_64  

bat
---

**$ bat --version**
bat 0.15.1  

**$ env**

bat_config
----------

bat_wrapper
-----------

No wrapper script for 'bat'.

bat_wrapper_function
--------------------

No wrapper function for 'bat'.

No wrapper function for 'cat'.

tool
----

**$ less --version**
less 551 (POSIX regular expressions)  
question

Most helpful comment

This is most likely related to the COLORTERM environment variable which is probably not set on the remote machine? In this case, bat will fall back to 8bit colors instead of 24bit colors. See https://github.com/sharkdp/bat#troubleshooting

All 3 comments

This is most likely related to the COLORTERM environment variable which is probably not set on the remote machine? In this case, bat will fall back to 8bit colors instead of 24bit colors. See https://github.com/sharkdp/bat#troubleshooting

That was it! I can't believe I missed that section, thank you!

You're welcome. Let us know if you think that the documentation could be improved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gwpl picture gwpl  ยท  3Comments

adamtabrams picture adamtabrams  ยท  3Comments

niedzielski picture niedzielski  ยท  3Comments

sharkdp picture sharkdp  ยท  3Comments

jkaan picture jkaan  ยท  3Comments