It's possible to determine whether the controlling termainl supports color,
but for nearly all cases a --[no]color flag is going to be enough and will
work better. I'm specifically calling tasky from my conkyrc in order to have
a lightweight desktop todo list, but it's also convenient to be able to read
this is via a vim script when filling out status reports and so on.
Originally I had been just hacking tasky.py to disable color support, but it
is nice to have it when I invoke tasky directly from the command line, so
this change allows both.
This makes sense to do. As you mentioned, there are certainly cases when you don't want to see color control characters on a screen in a non-colored terminal context. Thanks!
It's possible to determine whether the controlling termainl supports color, but for nearly all cases a --[no]color flag is going to be enough and will work better. I'm specifically calling tasky from my conkyrc in order to have a lightweight desktop todo list, but it's also convenient to be able to read this is via a vim script when filling out status reports and so on. Originally I had been just hacking tasky.py to disable color support, but it is nice to have it when I invoke tasky directly from the command line, so this change allows both.