Hi and thanks for fyne + terminal.
For my use-case it would be very helpful to retrieve the final exit code from the terminal's shell to determine outcome from commands executed in terminal via write().
The attached screenshot shows required changes to make this work (at least on macOS).
It obviously lacks Windows support so far and has no tests - I wanted to check your general thoughts on this before proceeding.
Should you be positive on it, feel free to simply recycle bits from below - or let me know if you'd prefer a PR.
👋
