cleanup terminal console iopub handling...
cleanup terminal console iopub handling
ensures IOPub for a given cell is handled before drawing the next prompt.
Follows logic elsewhere using `status=idle` to signal end of output for a given cell.
Prior to this, early execute reply could result in some output being printed after the prompt for the next input.