Closed chshersh closed 1 year ago
Would checking the $-
environment variable suffice?
I believe one should use hSupportsANSI from ansi-terminal
will have a go
Checking $-
is a valid option. But it would be nice to have a cross-platform solution.
Currently, it's possible to disable interactivity by specifying the
--no-input
options. But some terminals are non-interactive by nature (e.g. on CI). So it would be great to check this and specify the value ofInteractiveMode
automatically.