Skip to content
Discussion options

You must be logged in to vote

I think this is expected behavior related to how bat's adaptive theme detection works.

when you use --theme-dark and --theme-light in your bat config, bat needs to query your terminal's background color using OSC 11 escape sequences. the query is sent to the terminal and the response is read from stdin.

paru pipes PKGBUILD content to bat's stdin, which means bat cannot receive the terminal's response to the color query. detection fails silently and bat falls back to its default theme.

I verified this on a clean test system by comparing the ANSI color codes:

explicit --theme="Catppuccin Macchiato": 38;5;189, 38;5;116, 38;5;150
default theme: 38;5;231, 38;5;203, 38;5;186
adaptive themes (yo…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ninetailedtori
Comment options

@ninetailedtori
Comment options

@pfeifferj
Comment options

@ninetailedtori
Comment options

@mattfbacon
Comment options

Answer selected by ninetailedtori
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants