dm: video: support increased intensity (bold)

Support special rendition code 0 - reset attributes.
Support special rendition code 1 - increased intensity (bold).

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Heinrich Schuchardt
2018-02-08 21:47:12 +01:00
committed by Anatolij Gustschin
parent 5c30fbb8ec
commit 9ffa4d12a8
5 changed files with 43 additions and 10 deletions

View File

@@ -186,7 +186,7 @@ static int dm_test_video_ansi(struct unit_test_state *uts)
/* test colors (30-37 fg color, 40-47 bg color) */
vidconsole_put_string(con, ANSI_ESC"[30;41mfoo"); /* black on red */
vidconsole_put_string(con, ANSI_ESC"[33;44mbar"); /* yellow on blue */
ut_asserteq(267, compress_frame_buffer(dev));
ut_asserteq(265, compress_frame_buffer(dev));
return 0;
}