src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.ts/PartialCommandDetectionCapability/constructor
class PartialCommandDetectionCapability:	constructor(
		private readonly _terminal: Terminal,
	) {
		this._terminal.onData(e => this._onData(e));
		this._terminal.parser.registerCsiHandler({ final: 'J' }, params => {
			if (params.length >= 1 && (params[0] === 2 || params[0] === 3)) {
				this._clearCommandsInViewport();
			}
			// We don't want to override xterm.js' default behavior, just augment it
			return false;
		});
	}