Replace text with stdout only when process returned 0, otherwise show terminal pane.