code property

num? get code

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.

Implementation

_i2.num? get code => _i5.getProperty(
      this,
      'code',
    );