Skip to content

bug: bat does not display colors correctly #14

@massivebird

Description

@massivebird

Colors are not displayed correctly when invoking bat with ctrl+shift+g (Kitty's pager keybind).

Piping output directly to bat displays characters correctly, but without any color data.

Steps to reproduce

$ cd <repo>
$ git log
<ctrl+shift+g> # invokes kitty's pager
# output:
───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ STDIN
───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ [38;2;248;248;242m:2:248:248:242m*   d893838[38;2;248;248;242m:2:248:248:242m WIP on main: bf32a26 adds(alias): update nix flake  (refs/stash)
   2   │ |\[38;2;248;248;242m:2:248:248:242m
   3   │ |[38;2;248;248;242m:2:248:248:242m * f827876[38;2;248;248;242m:2:248:248:242m index on main: bf32a26 adds(alias): update nix flake
   4   │ |/[38;2;248;248;242m:2:248:248:242m
   5   │ |[38;2;248;248;242m:2:248:248:242m *   44625a0[38;2;248;248;242m:2:248:248:242m Merge branch 'main' into php-server  (HEAD -> php-server, origin/ph
       │ p-server)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions