Request pty size and send eof