(data: string)
| 694 | } |
| 695 | |
| 696 | function parseModifyOtherKeysSequence(data: string): ParsedModifyOtherKeysSequence | null { |
| 697 | const match = data.match(/^\x1b\[27;(\d+);(\d+)~$/); |
| 698 | if (!match) return null; |
| 699 | const modValue = parseInt(match[1]!, 10); |
| 700 | const codepoint = parseInt(match[2]!, 10); |
| 701 | return { codepoint, modifier: modValue - 1 }; |
| 702 | } |
| 703 | |
| 704 | /** |
| 705 | * Match xterm modifyOtherKeys format: CSI 27 ; modifiers ; keycode ~ |
no outgoing calls
no test coverage detected