rails / thor

Thor is a toolkit for building powerful command-line interfaces.
http://whatisthor.com/
MIT License
5.12k stars 553 forks source link

Restore colors when TERM is unset #711

Closed tpope closed 4 years ago

tpope commented 4 years ago

🌈

When I added this behavior, I wasn't taking Windows into account. My inspiration Git handles it by defaulting TERM on Windows, but Ruby has no such equivalent. I don't think TERM will ever be missing on UNIX under normal tty circumstances, so I think it's safe to drop the guard on all platforms.

Thanks for your patience!