Beets shouldn't colorize (at least by default) if output is to a file or pipe rather than a tty.
Open
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 2.1k
- Avg merge
- 4d 21h
- Merged PRs (30d)
- 31
Description
### Problem
This will output bad files to "bad-mp3.txt" but will also include ansi escape sequences which makes the file hard to read.
```sh
beet bad format:mp3 | tee bad-mp3.txt
```
ideally, beets shouldn't colorize (at least by default) if output is to a file or pipe rather than a tty.
Contributor guide
Research direction
Start by reproducing the issue with `beet bad format:mp3 | tee bad-mp3.txt` and trace the CLI's colorization behavior for terminal versus piped output. Done means piped or redirected output has no ANSI escape sequences by default while interactive terminal output retains its existing behavior; add coverage for both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100