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