Teach the output window about '\r' and '\n'.