Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDisable animations when terminal incapable of displaying #540
Comments
|
I'm not sure the most robust way to do this, but just wanted to note that that regex is too restrictive IMO. Lots of terminals which are neither xterm nor 256color-capable should still be able to show our spinner and limited coloring. The most notable would be It might be more valuable to avoid certain "known-dumb" I think @wfleming mentioned matching tools like |
|
In emacs' shell, I have yet to have anyone complain about my choice for minitest's pride being too restrictive. In general, I much prefer whitelisting to blacklisting so I know what I am getting, but I'm fine with whatever as long as I don't have to remember a flag every time. |
|
Oh, and the "right" way of doing this would be to test capability via termcap. In the case of screen:
ETA:
|
Checking
.tty?isn't enough to determine whether you should do fancier terminal output and can result in output looking like:In minitest, I use: