diff --git a/src/nimblepkg/cli.nim b/src/nimblepkg/cli.nim index 862ffe5..d8d52d5 100644 --- a/src/nimblepkg/cli.nim +++ b/src/nimblepkg/cli.nim @@ -13,6 +13,7 @@ # - Normal for MediumPriority. import logging, terminal, sets, strutils, os +import ./common when defined(windows): import winlean @@ -218,6 +219,9 @@ proc promptListInteractive(question: string, args: openarray[string]): string = of '\r': selected = true break + of '\3': + showCursor(stdout) + raise newException(NimbleError, "Keyboard interrupt") else: discard # Erase all lines of the selection