This commit is contained in:
Alan Donovan 2021-09-10 18:08:48 -04:00
parent af301bfff1
commit 1526ab5bff

View file

@ -109,7 +109,7 @@ func ask(qs []*survey.Question, response interface{}) error {
// ASCII \x03 (ETX) instead of delivering SIGINT to the application.
// So we have to serve ourselves the SIGINT.
//
// https://github.com/AlecAivazis/survey/#why-isnt-sending-a-sigint-aka-ctrl-c-signal-working
// https://github.com/AlecAivazis/survey/#why-isnt-ctrl-c-working
if err == terminal.InterruptErr {
self, _ := os.FindProcess(os.Getpid())
_ = self.Signal(os.Interrupt) // assumes POSIX