[coreboot] r3517 - in trunk/payloads/libpayload: . curses
svn at coreboot.org
svn at coreboot.org
Mon Aug 18 21:29:42 CEST 2008
Author: jcrouse
Date: 2008-08-18 21:29:41 +0200 (Mon, 18 Aug 2008)
New Revision: 3517
Modified:
trunk/payloads/libpayload/Config.in
trunk/payloads/libpayload/curses/tinycurses.c
Log:
Add a kconfig option to choose between outputing ACS characters or
their plain ASCII fallbacks over serial console.
Signed-off-by: Ulf Jordan <jordan at chalmers.se>
Acked-by: Jordan Crouse <jordan.crouse at amd.com>
Modified: trunk/payloads/libpayload/Config.in
===================================================================
--- trunk/payloads/libpayload/Config.in 2008-08-18 19:28:42 UTC (rev 3516)
+++ trunk/payloads/libpayload/Config.in 2008-08-18 19:29:41 UTC (rev 3517)
@@ -68,6 +68,20 @@
depends on SERIAL_SET_SPEED
default 115200
+config SERIAL_ACS_FALLBACK
+ bool "Use plain ASCII characters for ACS"
+ default n
+ depends on SERIAL_CONSOLE
+ help
+ The alternate character set (ACS) is used for drawing lines and
+ displaying a couple of other special graphics characters. The
+ ACS characters generally look good on screen, but can be difficult
+ to cut and paste from a terminal window to a text editor.
+
+ Say 'y' here if you want to always use plain ASCII characters to
+ approximate the appearance of ACS characters on the serial port
+ console.
+
config VIDEO_CONSOLE
bool "See output on a video console"
default y
Modified: trunk/payloads/libpayload/curses/tinycurses.c
===================================================================
--- trunk/payloads/libpayload/curses/tinycurses.c 2008-08-18 19:28:42 UTC (rev 3516)
+++ trunk/payloads/libpayload/curses/tinycurses.c 2008-08-18 19:29:41 UTC (rev 3517)
@@ -110,6 +110,9 @@
'|', '<', '>', '*', '!', 'f', 'o', ' ',
};
+#ifdef CONFIG_SERIAL_ACS_FALLBACK
+chtype serial_acs_map[128];
+#else
/* See acsc of vt100. */
chtype serial_acs_map[128] =
{
@@ -130,6 +133,7 @@
'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
'x', 'y', 'z', '{', '|', '}', '~', 0,
};
+#endif
/* See acsc of linux. */
chtype console_acs_map[128] =
More information about the coreboot
mailing list