src/vs/workbench/contrib/terminal/browser/terminalInstance.ts/TerminalInstance/toggleEscapeSequenceLogging
class TerminalInstance:	async toggleEscapeSequenceLogging(): Promise<boolean> {
		const xterm = await this._xtermReadyPromise;
		xterm.raw.options.logLevel = xterm.raw.options.logLevel === 'debug' ? 'info' : 'debug';
		return xterm.raw.options.logLevel === 'debug';
	}