Closed nponeccop closed 6 years ago
Sounds sensible - I'd happily accept a PR. One option would be using the hSupportsANSI
from ansi-terminal or isTerminal
from base (I'm happy either way).
This seems to have been fixed since 5245f28baa12638b06c660c34df66867e88f892c.
Oh, awesome! Closing optimistically.
Currently
hoogle generate
looks pretty ugly if it writes to a file and/or the terminal is broken. For example it's how it looks on CircleCI build log ifhoogle generate
is executed during a build:Visually it's like this:
My suggestion is to have a simpler progress indicator designed for logs and incorrect terminal emulators. Something along the lines of
--no-terminal
option ofstack
.