andrew-d/go-termutil — pull request #3 by proglottis (2014-07-17 23:05:24+00:00)
Title: Capture interrupt to allow console to be reset to echo mode

I was having trouble where if you interrupted/ctrl+c while it was prompting for password, the terminal would not be reset to echo mode. So I'm capturing interrupt to stop it.

Ideally this would break out of the password prompt - but I couldn't see an obvious way of doing it.