src/vs/platform/terminal/node/ptyService.ts/PersistentTerminalProcess/triggerReplay
class PersistentTerminalProcess:	async triggerReplay(): Promise<void> {
		this._hasWrittenData = true;
		const ev = await this._serializer.generateReplayEvent();
		let dataLength = 0;
		for (const e of ev.events) {
			dataLength += e.data.length;
		}
		this._logService.info(`Persistent process "${this._persistentProcessId}": Replaying ${dataLength} chars and ${ev.events.length} size events`);
		this._onProcessReplay.fire(ev);
		this._terminalProcess.clearUnacknowledgedChars();
		this._onPersistentProcessReady.fire();
	}