Handle Ctrl-C by temporarily disabling SIGINT

Ctrl-C is "Reset current line". This also reduces the chance that a
naïve program that hasn't installed its own SIGINT handler will leave
the terminal in an unusable state.

Inspired by pull request #28