Segment out the console output of the inferior.

Change-Id: I1ed17f03cfe439cb5866b7c0168bd89f242d57d8