How to copy all content (including formatted/boxed text) from *multiple terminals* in Cursor IDE

How to copy all content (including formatted/boxed text) from multiple terminals in Cursor IDE, ensuring that ANSI/UI-generated boxes, scrollback buffers, and chat panel data are fully captured. Address how to:

  1. Select and combine outputs from multiple terminal tabs.
  2. Preserve or clean ANSI formatting (e.g., boxes, colors).
  3. Copy UI-rendered boxed content (e.g., chat panels).
  4. Handle cases where Ctrl+A skips boxed data.
    Include terminal commands, IDE settings, or extensions if needed.?

Would redirecting output from CLI to a file help?