(sequence: string)
| 387 | } |
| 388 | |
| 389 | private emitDataSequence(sequence: string): void { |
| 390 | const rawCodepoint = sequence.length === 1 ? sequence.codePointAt(0) : undefined; |
| 391 | if (rawCodepoint !== undefined && rawCodepoint === this.pendingKittyPrintableCodepoint) { |
| 392 | this.pendingKittyPrintableCodepoint = undefined; |
| 393 | return; |
| 394 | } |
| 395 | |
| 396 | this.pendingKittyPrintableCodepoint = parseUnmodifiedKittyPrintableCodepoint(sequence); |
| 397 | this.emit("data", sequence); |
| 398 | } |
| 399 | |
| 400 | flush(): string[] { |
| 401 | if (this.timeout) { |
no test coverage detected