diff options
author | Ulf Jordan <jordan@chalmers.se> | 2008-08-09 20:17:22 +0000 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2008-08-09 20:17:22 +0000 |
commit | b96a2ffaa78ff5d693daf98829b4bb9dac0a6731 (patch) | |
tree | 70c31f2f26568ccb9d4872817afb14059e4cc4ba /payloads/libpayload/drivers/serial.c | |
parent | c5c1442fab2f524e32c41ef528e159af79d04af0 (diff) | |
download | coreboot-b96a2ffaa78ff5d693daf98829b4bb9dac0a6731.tar.xz |
Bugfixes to serial output functions: vt100 has bold with \e[1m,
upper left corner is (0,0) in curses, but (1,1) on the vt100.
Signed-off-by: Ulf Jordan <jordan@chalmers.se>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3493 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/drivers/serial.c')
-rw-r--r-- | payloads/libpayload/drivers/serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/drivers/serial.c b/payloads/libpayload/drivers/serial.c index f7b12eb561..1eb7e0fdf4 100644 --- a/payloads/libpayload/drivers/serial.c +++ b/payloads/libpayload/drivers/serial.c @@ -101,7 +101,7 @@ int serial_getchar(void) /* These are thinly veiled vt100 functions used by curses */ #define VT100_CLEAR "\e[H\e[J" -#define VT100_SBOLD "\e[7m" +#define VT100_SBOLD "\e[1m" #define VT100_EBOLD "\e[m" #define VT100_CURSOR_ADDR "\e[%d;%dH" @@ -129,6 +129,6 @@ void serial_end_bold(void) void serial_set_cursor(int y, int x) { char buffer[32]; - snprintf(buffer, sizeof(buffer), VT100_CURSOR_ADDR, y, x); + snprintf(buffer, sizeof(buffer), VT100_CURSOR_ADDR, y + 1, x + 1); serial_putcmd(buffer); } |