MCPcopy Create free account
hub / github.com/Noumena-Network/code / isWindowsTerminal

Function isWindowsTerminal

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

Source from the content-addressed store, hash-verified

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

Callers 1

isModernWindowsTerminalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected