Closed cdlm closed 5 years ago
That's a good point. I've personally always used ^G
, but there's no reason that I couldn't trap ^C
. I think I would also need to essentially reimplement https://github.com/garybernhardt/selecta/commit/7a70fce0fab8f74212fcfce9642eacc40c3321ed.
After cancelling
hs
using control-C, the terminal is left in a different state. The return key results in^M
instead of newlines, as described here.This can be confirmed by comparing the output of
stty -a | grep icrnl
before and after runninghs
and pressing ^C. Pressing ^G instead of ^C behaves correctly.