Interface TerminalExitStatus

Represents how a terminal exited.

interface TerminalExitStatus {
    code: undefined | number;
    reason: TerminalExitReason;
}

Properties

Properties

code: undefined | number

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.

The reason that triggered the exit of a terminal.