KetraTerm
API · v0.3.0All versions

foregroundProcessName

open override fun foregroundProcessName(): String?

Reads the Unix foreground process-group leader or uses the newest live descendant on Windows. The Windows result is a heuristic and may identify a background child. Returns only a basename, or null on closure/unavailable metadata; applications inside SSH or WSL are not inspected.