read input only from tty