peterh / liner

Pure Go line editor with history, inspired by linenoise
MIT License
1.05k stars 132 forks source link

Add SetCtrlZStop #149

Closed qingyunha closed 3 years ago

qingyunha commented 3 years ago

SetCtrlZStop can be called if the application wishes Prompt to stop itself when when the user presses Ctrl-Z.

Fixes #131

peterh commented 3 years ago

Sorry for the delay. After a flurry of modifications, I was expecting you to comment when this pull request was ready for review.

Thanks for the patch. However, after careful consideration I have decided not to accept this change. Please see my comments in #131 .