Get TTY stuff happy enough to drive the REPL/readline/tty.