Author: stuge Date: 2008-08-09 22:17:22 +0200 (Sat, 09 Aug 2008) New Revision: 3493
Modified: trunk/payloads/libpayload/drivers/serial.c Log: 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
Modified: trunk/payloads/libpayload/drivers/serial.c =================================================================== --- trunk/payloads/libpayload/drivers/serial.c 2008-08-09 20:15:00 UTC (rev 3492) +++ trunk/payloads/libpayload/drivers/serial.c 2008-08-09 20:17:22 UTC (rev 3493) @@ -101,7 +101,7 @@ /* 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_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); }