beetbox / beetbox/beets

Beets shouldn't colorize (at least by default) if output is to a file or pipe rather than a tty.

Open
#5,837 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.