public event terminated as ActionEvent
Emitted once the process has exited, its remaining output has been displayed and the pseudo-terminal has been released. The displayed text remains available for scrolling and painting after this event.
terminal.terminated += lambda(e as ActionEvent): print("terminal stopped")