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

Function normalizeAppleTerminalInput

packages/pi-tui/src/terminal.ts:44–47  ·  view source on GitHub ↗
(data: string, isAppleTerminal: boolean, isShiftPressed: boolean)

Source from the content-addressed store, hash-verified

42}
43
44export function normalizeAppleTerminalInput(data: string, isAppleTerminal: boolean, isShiftPressed: boolean): string {
45 if (isAppleTerminal && data === "\r" && isShiftPressed) return APPLE_TERMINAL_SHIFT_ENTER_SEQUENCE;
46 return data;
47}
48
49/**
50 * Minimal terminal interface for TUI

Callers 2

terminal.test.tsFile · 0.90
forwardInputSequenceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected