MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isWindowsTerminalSession

Function isWindowsTerminalSession

packages/pi-tui/src/keys.ts:715–719  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

713}
714
715function isWindowsTerminalSession(): boolean {
716 return (
717 Boolean(process.env['WT_SESSION']) && !process.env['SSH_CONNECTION'] && !process.env['SSH_CLIENT'] && !process.env['SSH_TTY']
718 );
719}
720
721/**
722 * Raw 0x08 (BS) is ambiguous in legacy terminals.

Callers 2

matchesRawBackspaceFunction · 0.85
parseKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected