def sendeof(self):
<EOL>if hasattr(termios, '<STR_LIT>'):<EOL><INDENT>char = termios.tcgetattr(self.child_fd)[<NUM_LIT:6>][termios.VEOF]<EOL><DEDENT>else:<EOL><INDENT>char = chr(<NUM_LIT:4>)<EOL><DEDENT>self.send(char)<EOL>
This sends an EOF to the child. This sends a character which causes
        the pending parent output buffer to be sent to the waiting child
        program without waiting for end-of-line. If it is the first character
        of the line, the read() in the user program returns 0, which signifies
        end-of-file. This means to work as expected a sendeof() has to be
        called at the beginning of a line. This method does not send a newline.
        It is the responsibility of the caller to ensure the eof is sent at the
        beginning of a line.