terminal: Consume event during processing (#30869)

By consuming the event during processing we save a few clones during
event processing.

Overall in this PR we save one Clone each during:

- Paste to the terminal
- Writing to the terminal
- Setting the title
- On every terminal transaction
- On every ViMotion when not using shift

Release Notes:

- N/A
4266f0da85tidely committed on 5/23/2025, 11:28:53 AM· committed by GitHubparentc50093d
3 files changedLine totals unavailable