src/vs/workbench/contrib/terminal/browser/terminalInstance.ts/TerminalInstance/focus
class TerminalInstance:	focus(force?: boolean): void {
		this._refreshAltBufferContextKey();
		if (!this.xterm) {
			return;
		}
		if (force || !window.getSelection()?.toString()) {
			this.xterm.raw.focus();
		}
	}