TerminalSessionCloseEvent

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

Immutable lifecycle event emitted when a TerminalSession stops accepting host input.

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

transport failure that closed the session, or null for a normal remote exit or local close.

Link copied to clipboard

true when application code initiated closure via TerminalSession.close.