manifoldco / promptui

Interactive prompt for command-line applications
https://www.manifold.co
BSD 3-Clause "New" or "Revised" License
6.03k stars 333 forks source link

Added Interrupt Handler Function #232

Closed RohanSavalgi closed 1 month ago

RohanSavalgi commented 1 month ago

For both Select and Prompt, interrupt handler function was added in-order to handle keyboard interrupts gracefully. For every prompt or select we can pass in a function with will be called when ever we receive a keyboard interrupt ( Ctrl+C ) from the user.

CLAassistant commented 1 month ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 3 committers have signed the CLA.

:white_check_mark: 1lann
:x: konidev20
:x: dependabot[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.