def correspond(self, text):
self.stdin.write(text)<EOL>self.stdin.flush()<EOL>str_buffer = '<STR_LIT>'<EOL>while not str_buffer.endswith(self.prompt):<EOL><INDENT>str_buffer += self.stdout.read(<NUM_LIT:1>)<EOL><DEDENT>return str_buffer<EOL>
Communicate with the child process without closing stdin.