Maybe I got it wrong... In my view, what you need is to perform a dynamycal analyisis on the output of the console. That is more difficult, since you need to know precisely if the output is something formatted as lines. Otherwise, you end up with an endless string which has only one line, which is ...