Match StreamExec interface to PTY output

Swapped input and output