ReadonlycodeThe exit code that a terminal exited with, it can have the following values:
undefined: the user forcibly closed the terminal or a custom execution exited
without providing an exit code.ReadonlyreasonThe reason that triggered the exit of a terminal.
Represents how a terminal exited.