Copy selection
Paste
Paste text…
Drag over text to select. Copy / paste: ⌘C / ⌘V or Ctrl+Shift+C / V. With a modifier key, right click goes to the application.
Close
Paste into terminal