Refactor shell wrapping (#23108)

I want to use this to implement ! in vim, so move it from terminal_view
to task, and split windows/non-windows more cleanly.

Release Notes:

- N/A
f50a118e78Conrad Irwin committed on 1/15/2025, 3:45:48 PM· committed by GitHubparent45198f2
2 files changedLine totals unavailable