mbedmicro/mbed — pull request #125 by Joey-Ye (2013-12-13 02:27:08+00:00)
Title: Add \r in retarget

Serial retarget doesn't output correctly in most of terminal emulator by default, as there is not \r. Output was
line 1
line 2
line 3
This patch adds \r before \n before sending to UART, which fixes the issue. Tested with linux screen and Windows putty.