basic repl which responds to ctl-d and ctl-l