summaryrefslogtreecommitdiff
path: root/payloads/libpayload/curses
diff options
context:
space:
mode:
authorJordan Crouse <jordan.crouse@amd.com>2008-04-10 22:49:02 +0000
committerJordan Crouse <jordan.crouse@amd.com>2008-04-10 22:49:02 +0000
commit30939bdffd0435df4aa0830b2da1ef06ceebfba3 (patch)
tree12c08ea67c3c6756c7959813a043f075844d09fa /payloads/libpayload/curses
parentbac89d088cf102851122925b31404b7ae52c21c3 (diff)
libpayload: Add video console framework
Add a framework for multiple video console drivers. This is to prepare for the Geode driver. Signed-off-by: Jordan Crouse <jordan.crouse@amd.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3230 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/curses')
-rw-r--r--payloads/libpayload/curses/local.h2
-rw-r--r--payloads/libpayload/curses/tinycurses.c9
2 files changed, 6 insertions, 5 deletions
diff --git a/payloads/libpayload/curses/local.h b/payloads/libpayload/curses/local.h
index 577fcd4000..7e1fb64b93 100644
--- a/payloads/libpayload/curses/local.h
+++ b/payloads/libpayload/curses/local.h
@@ -69,7 +69,7 @@
/* Flags used to determine what output methods are available */
-#ifdef CONFIG_VGA_CONSOLE
+#ifdef CONFIG_VIDEO_CONSOLE
#define F_ENABLE_CONSOLE 0x01
#else
#define F_ENABLE_CONSOLE 0x00
diff --git a/payloads/libpayload/curses/tinycurses.c b/payloads/libpayload/curses/tinycurses.c
index 9b87ec0828..8fc9bde268 100644
--- a/payloads/libpayload/curses/tinycurses.c
+++ b/payloads/libpayload/curses/tinycurses.c
@@ -219,9 +219,10 @@ WINDOW *initscr(void)
// def_prog_mode();
if (curses_flags & F_ENABLE_CONSOLE) {
- /* Clear the screen and kill the cursor. */
- vga_clear();
- vga_cursor_enable(0);
+ /* Clear the screen and kill the cursor */
+
+ video_console_clear();
+ video_console_cursor_enable(0);
}
// Speaker init?
@@ -586,7 +587,7 @@ int wnoutrefresh(WINDOW *win)
* but this will break wide characters!
*/
c |= (chtype) (win->_line[y].text[x].chars[0] & 0xff);
- vga_putc(y, x, c);
+ video_console_putc(y, x, c);
}
}
}