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