Represents how a terminal exited.

Fields

read onlyreason:TerminalExitReason

The reason that triggered the exit of a terminal.

read onlycode:Null<Int>

The exit code that a terminal exited with, it can have the following values: - Zero: the terminal process or custom execution succeeded. - Non-zero: the terminal process or custom execution failed. - undefined: the user forcibly closed the terminal or a custom execution exited without providing an exit code.