console: Add a function to read a line of the output / eof