jrupac / tasky

A command-line desktop client for Google Tasks.
GNU General Public License v3.0
116 stars 33 forks source link

Add a [no]color option to the command line #24

Closed jjmcdn closed 9 years ago

jjmcdn commented 9 years ago

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.

jrupac commented 9 years ago

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!