New Shell code outputs data as/when the app sends it - that means
we could get a line of text, plus a <cr> in the following event.  the existing code strips single newlines.  stripped out the strip