()
| 18 | } |
| 19 | |
| 20 | function isMintty(): boolean { |
| 21 | // mintty 3.1.5+ sets TERM_PROGRAM to 'mintty' |
| 22 | if (process.env.TERM_PROGRAM === 'mintty') { |
| 23 | return true |
| 24 | } |
| 25 | // GitBash/MSYS2/MINGW use mintty and set MSYSTEM |
| 26 | if (process.platform === 'win32' && process.env.MSYSTEM) { |
| 27 | return true |
| 28 | } |
| 29 | return false |
| 30 | } |
| 31 | |
| 32 | function isModernWindowsTerminal(): boolean { |
| 33 | // Windows Terminal sets WT_SESSION environment variable |
no outgoing calls
no test coverage detected