MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isMintty

Function isMintty

src/ink/clearTerminal.ts:20–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20function 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
32function isModernWindowsTerminal(): boolean {
33 // Windows Terminal sets WT_SESSION environment variable

Callers 1

isModernWindowsTerminalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected