[U-Boot] [PATCH v4 0/4] dm: video: Correct color ANSI escape sequence support

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Feb 8 20:47:08 UTC 2018


Support special rendition code 0 - reset attributes.
Support special rendition code 1 - increased intensity (bold).
Get RGB sequence in pixels right (swap blue and red).
Do not set reserved bits.
Use u32 instead of unsigned for color bit mask.

qemu-system-i386 -display sdl -vga virtio and
qemu-system-i386 -display sdl -vga cirrus
now display the same colors as
qemu-system-i386 -nographic

Testing is possible via

	setenv efi_selftest test output
	bootefi selftest
---
v4:
	Fix a build warning leading to a Travis error.
	Rename a variable.
v3:
	Split single patch up into a series
	Use constants for colors
v2:
	SGR 0 should reset the colors and the attributes.
---

Heinrich Schuchardt (4):
  dm: video: show correct colors in graphical console
  dm: video: correctly clean background in 16bit mode
  dm: video: use constants to refer to colors
  dm: video: support increased intensity (bold)

 drivers/video/vidconsole-uclass.c | 86 ++++++++++++++++++++++++++-------------
 drivers/video/video-uclass.c      | 38 +++++++++++++----
 include/video.h                   | 13 +++++-
 include/video_console.h           | 43 ++++++++++++++++++++
 test/dm/video.c                   |  2 +-
 5 files changed, 142 insertions(+), 40 deletions(-)

-- 
2.14.2



More information about the U-Boot mailing list