SetCtrlCAborts sets whether Prompt on a supported terminal will return an ErrPromptAborted when Ctrl-C is pressed. The default is false (will not return when Ctrl-C is pressed). Unsupported terminals typically raise SIGINT (and Prompt does not return) regardless of the value passed to SetCtrlCAborts.
SetCtrlCAborts is referenced in 1 repositorygithub.com/siddontang/ledisdb
- 1 reference in cmd/ledis-cli/main.go