Readonly
codeThe 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.Readonly
reasonThe reason that triggered the exit of a terminal.
Represents how a terminal exited.