isForegroundProcessRunning property

  1. @override
ValueListenable<bool>? get isForegroundProcessRunning
override

null when the backend cannot determine foreground state (e.g. Windows, remote/SSH backends, or fakes). Hosts should treat null as "unknown".

Classes that implement PtyBackend must declare this getter explicitly (Dart does not inherit concrete members via implements); return null unless the backend can report foreground state.

Implementation

@override
ValueListenable<bool>? get isForegroundProcessRunning =>
    _disposed ? null : _foregroundRunning;