public event terminated as ActionEvent
Emitted when the underlying pseudo-terminal process exits.
terminal.terminated += lambda(e: ActionEvent): print("terminal stopped")