jmakhack / myanimelist-cli

Minimalistic command line interface for fetching user anime data from MyAnimeList.
https://aur.archlinux.org/packages/mya-git
MIT License
11 stars 15 forks source link

[FEATURE] No ANSI color when output is not a tty #113

Open pbsds opened 1 year ago

pbsds commented 1 year ago

When you use mya it prints colors, even though the output is not a tty, i.e. an interactive user session. If you pipe the output through an another program, such as cat or grep, or to a file, then the colors should not be there.