tox icon indicating copy to clipboard operation
tox copied to clipboard

Please suppress ANSI colors and progress spinner when TERM=dumb

Open mgedmin opened this issue 6 years ago • 1 comments

I'm often running things like tox -p auto -e py27,py35 -- testfile::test_function from Vim, using its builtin quickfix window to look at the errors. (I've a plugin that runs the test under cursor with a single keystroke, it's very convenient.)

This is what I see with tox 3.9.0:

Ekrano nuotrauka iš 2019-05-08 18-09-22 ... Ekrano nuotrauka iš 2019-05-08 18-09-39

It would be amazing if tox noticed that $TERM was set to dumb and did not output all these ^M^[s

mgedmin avatar May 08 '19 15:05 mgedmin

on TERM dumb we should use ascii frames here https://github.com/tox-dev/tox/blob/rewrite/src/tox/util/spinner.py#L65

gaborbernat avatar Jan 13 '22 10:01 gaborbernat