KetraTerm
API · DevelopmentAll versions

hasRunningCommand

open override fun hasRunningCommand(): Boolean

Returns true while shell integration reports a command between command-start and command-finished events.

Idle prompts, sessions with no shell command information, finished commands, and commands abandoned by a newer prompt all return false. The query is allocation-free and safe for host close-policy checks.

Return

true when an active foreground command is known to be running.