Skip to content

Commit 6c2465d

Browse files
committed
docs: note EXE and CSI fast paths in parse method docs
1 parent 5922123 commit 6c2465d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/common/parser/EscapeSequenceParser.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,10 @@ export class EscapeSequenceParser extends Disposable implements IEscapeSequenceP
506506
* - OSC_STRING:OSC_PUT
507507
* - DCS_PASSTHROUGH:DCS_PUT
508508
*
509+
* Additionally the following fast paths exist before the table lookup:
510+
* - EXE bytes < 0x18 in non-payload states (avoids table lookup entirely)
511+
* - 7-bit CSI sequences without intermediates (ESC [ params final)
512+
*
509513
* Note on asynchronous handler support:
510514
* Any handler returning a promise will be treated as asynchronous.
511515
* To keep the in-band blocking working for async handlers, `parse` pauses execution,

0 commit comments

Comments
 (0)