ajalt / mordant

Multiplatform text styling for Kotlin command-line applications
https://ajalt.github.io/mordant/
Apache License 2.0
982 stars 34 forks source link

Support detecting the mintty terminal application on Cygwin / MSYS2 #127

Closed sschuberth closed 1 year ago

sschuberth commented 1 year ago

See http://mintty.github.io/. Note that when running mintty as a MingGW application (as done by Git Bash on Windows), the check for an interactive terminal currently fails as mintty is redirecting output, see 1 and 2. This needs to be compensated with by a pipe-based check as done by Git for Windows itself 3.