example shell
Trying to catch ^C with a count… doesn't work though. Prolly have to bind the key in readline or something