]> git.proxmox.com Git - mirror_xterm.js.git/blobdiff - src/SelectionManager.ts
Support copying in the alt buffer
[mirror_xterm.js.git] / src / SelectionManager.ts
index 6dc34c6558113ae691da971677e4dbcaf5e556f1..8b4923a9952f007dbb165d9a1e580b9fd2e7e7fd 100644 (file)
@@ -136,6 +136,15 @@ export class SelectionManager extends EventEmitter {
     this._rowContainer.addEventListener('mousedown', this._mouseDownListener);
   }
 
+  /**
+   * Sets the active buffer, this should be called when the alt buffer is
+   * switched in or out.
+   * @param buffer The active buffer.
+   */
+  public setBuffer(buffer: CircularList<any>): void {
+    this._buffer = buffer;
+  }
+
   /**
    * Gets the text currently selected.
    */