read from tty