(self, stream, output)
Retrieve SHELL output and write to console.
Retrieve SHELL output and write to console.
Retrieve SHELL output and write to console .
def _process_stdout(self, stream, output):
        """Retrieve SHELL output and write to console."""
        while True:
            # blocking read
            c = stream.read(1)
            # stream ends if process closes
            if not c:
                return
            # don't access console in this thread
            # the other thread already does
            output.append(c)
def _process_stdout ( self , stream , output ) : while True : # blocking read c = stream . read ( 1 ) # stream ends if process closes if not c : return # don't access console in this thread # the other thread already does output . append ( c )