correct TTY input for windows on pipe