KetraTerm
API · DevelopmentAll versions

TerminalSessionCloseEvent

data class TerminalSessionCloseEvent(val exitCode: Int?, val failure: Throwable?, val locallyRequested: Boolean)

Immutable lifecycle event published after TerminalSession cleanup finishes.

Constructors

Link copied to clipboard
constructor(exitCode: Int?, failure: Throwable?, locallyRequested: Boolean)

Properties

Link copied to clipboard

process exit code reported by the transport, or null when the process did not provide one or closure was local.

Link copied to clipboard

startup, transport, outbound worker, or cleanup failure; null for successful local cleanup or normal remote exit. Unexpected writer cancellation retains its cause. Later cleanup failures are suppressed on the first failure.

Link copied to clipboard

true when application code initiated closure via TerminalSession.close or TerminalSession.requestClose.