paru doesn't seem to be using bat when it can, or isn't using my config? #1506
-
|
Yea, I have confirmed it IS using bat on moor, but I just don't know why it isn't respecting my themes! It's being a little silly :3 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
I think this is expected behavior related to how bat's adaptive theme detection works. when you use 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: the adaptive config produces identical output to the default theme, not catppuccin. if you add this to your paru.conf: BatFlags = --theme=darkthe alternatively, you can use an explicit theme: BatFlags = --theme="Catppuccin Macchiato" |
Beta Was this translation helpful? Give feedback.
I think this is expected behavior related to how bat's adaptive theme detection works.
when you use
--theme-darkand--theme-lightin 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: