src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.ts/XtermTerminal/clearBuffer
class XtermTerminal:	clearBuffer(): void {
		this.raw.clear();
		// xterm.js does not clear the first prompt, so trigger these to simulate
		// the prompt being written
		this._capabilities.get(TerminalCapability.CommandDetection)?.handlePromptStart();
		this._capabilities.get(TerminalCapability.CommandDetection)?.handleCommandStart();
	}