Handle left and right arrow key in UART console.
Handle left and right arrow key in UART console.

Handle left and right arrow key to move cursor around.
Other escape sequences are still ignored.

BUG=chrome-os-partner:7865
TEST=type some text and use left and right arrow key. Cursor should
move.
type 'hellp', left key, and backspace. Should show 'help' and hitting
enter prints help.
type 'hexp', left key, backspace, 'l'. Should show 'help and hitting
enter prints help.

Change-Id: If9ac4504c56f023f824175de2daf565ce72d4560

gelraen/cros-ec,gelraen/cros-ec,akappy7/ChromeOS_EC_LED_Diagnostics,md5555/ec,md5555/ec,alterapraxisptyltd/chromium-ec,fourier49/BZ_DEV_EC,coreboot/chrome-ec,md5555/ec,akappy7/ChromeOS_EC_LED_Diagnostics,alterapraxisptyltd/chromium-ec,eatbyte/chromium-ec,eatbyte/chromium-ec,md5555/ec,coreboot/chrome-ec,mtk09422/chromiumos-platform-ec,longsleep/ec,gelraen/cros-ec,longsleep/ec,fourier49/BIZ_EC,thehobn/ec,thehobn/ec,alterapraxisptyltd/chromium-ec,mtk09422/chromiumos-platform-ec,longsleep/ec,thehobn/ec,coreboot/chrome-ec,eatbyte/chromium-ec,coreboot/chrome-ec,longsleep/ec,fourier49/BIZ_EC,fourier49/BIZ_EC,fourier49/BIZ_EC,eatbyte/chromium-ec,mtk09422/chromiumos-platform-ec,fourier49/BZ_DEV_EC,akappy7/ChromeOS_EC_LED_Diagnostics,gelraen/cros-ec,akappy7/ChromeOS_EC_LED_Diagnostics,alterapraxisptyltd/chromium-ec,mtk09422/chromiumos-platform-ec,coreboot/chrome-ec,fourier49/BZ_DEV_EC,thehobn/ec,coreboot/chrome-ec,fourier49/BZ_DEV_EC,akappy7/ChromeOS_EC_LED_Diagnostics