Move new onRender behavior into headless Terminal impl

This commit is contained in:
Daniel Imms
2025-12-26 11:27:38 -08:00
parent a26471b9f3
commit 82f961f76f
2 changed files with 1 additions and 2 deletions
-2
View File
@@ -126,8 +126,6 @@ export abstract class CoreTerminal extends Disposable implements ICoreTerminal {
// Register input handler and handle/forward events
this._inputHandler = this._register(new InputHandler(this._bufferService, this._charsetService, this.coreService, this._logService, this.optionsService, this._oscLinkService, this.coreMouseService, this.unicodeService));
this._register(Event.forward(this._inputHandler.onLineFeed, this._onLineFeed));
this._register(Event.forward(Event.map(this._inputHandler.onRequestRefreshRows, e => ({ start: e?.start ?? 0, end: e?.end ?? this.rows - 1 })), this._onRender));
this._register(this._inputHandler);
// Setup listeners
this._register(Event.forward(this._bufferService.onResize, this._onResize));
+1
View File
@@ -53,6 +53,7 @@ export class Terminal extends CoreTerminal {
this._register(Event.forward(this._inputHandler.onTitleChange, this._onTitleChange));
this._register(Event.forward(this._inputHandler.onA11yChar, this._onA11yCharEmitter));
this._register(Event.forward(this._inputHandler.onA11yTab, this._onA11yTabEmitter));
this._register(Event.forward(Event.map(this._inputHandler.onRequestRefreshRows, e => ({ start: e?.start ?? 0, end: e?.end ?? this.rows - 1 })), this._onRender));
}
/**