Disable echoing on non-TTY handles in repl-basic [closes #1930]