src/vs/platform/terminal/common/terminalRecorder.ts/TerminalRecorder/generateReplayEvent
class TerminalRecorder:	generateReplayEvent(): IPtyHostProcessReplayEvent {
		// normalize entries to one element per data array
		this._entries.forEach((entry) => {
			if (entry.data.length > 0) {
				entry.data = [entry.data.join('')];
			}
		});
		return {
			events: this._entries.map(entry => ({ cols: entry.cols, rows: entry.rows, data: entry.data[0] ?? '' }))
		};
	}