--color=auto should detect if output supports colors
markus-wa opened this issue · comments
see #15 (comment)
pretty was released with automatic logic for enabling colors. Seems pretty straightforward: clj-commons/pretty@7cb0c16
So should we only check for existence of System.console()
or the REPL trick too?
(or (contains? (set (loaded-libs)) 'nrepl.core)
(System/console))
I guess we don't need the env var check?
the above looks good. REPL trick is probably a good idea but env var not needed IMO (it's not a standard env var)
Yeah, that's what I thought. I'll make a PR sometime 👍
Here's the PR #20
amazing, thanks - will make a new release shortly 🙂