kliment/Printrun — pull request #311 by colah (2013-01-11 00:51:04+00:00)
Title: Fix Ctr-C and Ctr-D behavior.

We replace the cmdloop function with a slightly modified version
to achieve standard unix shell behavior on keyboard interupts and EOF.