Open svenmuennich opened 7 years ago
For now, this should be an improvement wrt to processing redirected output: https://github.com/VIISON/scs-commander/pull/12
But yes, isTTY
would be – non-proper TTY outputs like IDEs or automated build environments don't usually handle control characters well (e.g., deleted previous characters to delete the spinner)
According to this SO thread, we can just use
process.stdout.isTTY
.