message: Pipe the terminal title into the extension environment
diff: @@ -739,7 +739,7 @@ export class Terminal implements Tab, Disposable {
  });
  emulator.debug = true;
  - // emulator.onTitleChange(this._handleTitle.bind(this));
  + emulator.onTitleChange(this.#handleTitle.bind(this));
  emulator.onData(this.#handleTermData.bind(this));
  emulator.onScreenChange(this.#handleScreenChange.bind(this));
  @@ -774,6 +774,10 @@ export class Terminal implements Tab, Disposable {
  }
  }
  + #handleTitle(ev: TermApi.TitleChangeEvent): void {
  + this.environment.set(TerminalEnvironment.TERM_TITLE, ev.title);
  + }
  +
  #handleTermData(event: TermApi.DataEvent): void {
  this.sendToPty(event.data);
  }
  