KetraTerm
API · DevelopmentAll versions

recordCommandFinished

fun recordCommandFinished(lineId: Long, exitCode: Int?)

Records command completion.

A non-zero exitCode becomes a failed command range only when a matching command start was recorded. An unavailable exit status is stored as unknown.

Parameters

lineId

stable render line identity where command completion was observed.

exitCode

shell-reported exit code, or null if omitted/malformed.