libpayload: Add video console framework
[coreboot.git] / payloads / libpayload / curses / tinycurses.c
index 9b87ec0828fb3c753d7aba84e8b0abce8301f14a..8fc9bde2687c07674fe2e848b1f0f1f1ee9f13bb 100644 (file)
@@ -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);
                        }
                }
        }