Read input from /dev/tty.