cancel method

void cancel()

Marks the prompt as cancelled.

Call this from your cancel key binding.

Implementation

void cancel() {
  _cancelled = true;
}