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

Function isWindowsTerminal

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

Source from the content-addressed store, hash-verified

14const CURSOR_HOME_WINDOWS = csi(0, 'f')
15
16function isWindowsTerminal(): boolean {
17 return process.platform === 'win32' && !!process.env.WT_SESSION
18}
19
20function isMintty(): boolean {
21 // mintty 3.1.5+ sets TERM_PROGRAM to 'mintty'

Callers 1

isModernWindowsTerminalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected