cli: Prepend carriage return to line feed
Created by: mohamedasaker-arm
After c15ff7e9 which removes the prepending carriage return from the drivers. It moves the responsibility of prepending carriage return to the user of the driver. This patch is adding this logic to the cli.