Add registerApcHandler to public api

This commit is contained in:
Anthony Kim
2026-01-21 10:42:36 -08:00
parent 48df6117ed
commit 8e29591b9f
5 changed files with 31 additions and 0 deletions
+5
View File
@@ -242,6 +242,11 @@ export abstract class CoreTerminal extends Disposable implements ICoreTerminal {
return this._inputHandler.registerOscHandler(ident, callback);
}
/** Add handler for APC escape sequence. See xterm.d.ts for details. */
public registerApcHandler(ident: number, callback: (data: string) => boolean | Promise<boolean>): IDisposable {
return this._inputHandler.registerApcHandler(ident, callback);
}
protected _setup(): void {
this._handleWindowsPtyOptionChange();
}