when (getTermProgram()) { isn't reached even if output is not redirected to a file.
That's correct. Whenever we're in a situation where it's not possible to detect whether output is interactive or not (which is the case for Git for Windows), we should assume it is not, in order to avoid printing ANSI codes to a file.
That's correct. Whenever we're in a situation where it's not possible to detect whether output is interactive or not (which is the case for Git for Windows), we should assume it is not, in order to avoid printing ANSI codes to a file.
Yeah, that was the workaround I mentioned that we could add to
Win32MppImpls
in a separate PR._Originally posted by @ajalt in https://github.com/ajalt/mordant/pull/127#discussion_r1330356995_