Added a loop to make sure all available lines are read and processed from the stream
As far as I understand the description of this issue, not all available lines are processed by the system. So a simple loop, seems to be all what is missing.
Test:
when pasting three @ls
from the clipbrd to the console
Resolves issue #1 (closed)