normal file operation to read and write to /dev/tty, which is always current terminal