ctrl-d should act like an enter (even when given an atexit)