hasPendingPrompt property

bool get hasPendingPrompt

Whether a prompt is currently awaiting an answer (so a host can decide whether a Ctrl-C should unblock it).

Implementation

bool get hasPendingPrompt => _promptCompleter != null;