switch REPL to use blocking/task API instead of the callback API
pause reading when enough_stdin flag is set; fixes pasting multiple lines