Files
bat/tests
draarivpatel-ui 6d35a98db5 Do not show style decorations when piped with decorations=auto
`--decorations=auto` is documented to enable decorations only when stdout is
an interactive terminal, but `--color=always` forces the printer path and the
requested style components were applied anyway. `bat --color=always file | cat`
therefore printed the header, grid, and line numbers.

Return an empty component set when stdout is not interactive unless
decorations are explicitly `always` or `--force-colorization` is used.
Explicit `-n` and `-b` flags are still honored, matching the existing `cat -n`
compatibility behavior, and `--diff` keeps its change markers.

Adds integration tests for piped color output with auto decorations, with
`--style=full`, and with `--decorations=always`.

Fixes #3710
2026-11-25 18:38:10 -06:00
..
2025-08-28 17:30:50 +00:00
2022-06-12 16:38:33 +02:00
2026-06-26 20:27:49 +02:00
2021-06-14 08:36:20 +02:00
2026-01-14 21:13:44 -07:00
2024-01-27 14:44:54 +00:00