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

Function isAppleTerminalSession

packages/pi-tui/src/terminal.ts:40–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40export function isAppleTerminalSession(): boolean {
41 return process.platform === "darwin" && process.env['TERM_PROGRAM'] === "Apple_Terminal";
42}
43
44export function normalizeAppleTerminalInput(data: string, isAppleTerminal: boolean, isShiftPressed: boolean): string {
45 if (isAppleTerminal && data === "\r" && isShiftPressed) return APPLE_TERMINAL_SHIFT_ENTER_SEQUENCE;

Callers 1

forwardInputSequenceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected