Index: include/libpayload.h =================================================================== --- include/libpayload.h (revision 427) +++ include/libpayload.h (working copy) @@ -123,6 +123,8 @@ void video_console_putc(u8 row, u8 col, unsigned int ch); void video_console_clear(void); void video_console_cursor_enable(int state); +void video_console_get_cursor(unsigned int *x, unsigned int *y, unsigned int *en); +void video_console_set_cursor(unsigned int cursorx, unsigned int cursory); /* drivers/option.c */ int get_option(void *dest, char *name); Index: drivers/video/video.c =================================================================== --- drivers/video/video.c (revision 427) +++ drivers/video/video.c (working copy) @@ -140,6 +140,22 @@ video_console_fixup_cursor(); } +void video_console_get_cursor(unsigned int *x, unsigned int *y, unsigned int *en) +{ + *x=0; + *y=0; + *en=0; + + if (console->get_cursor) + console->get_cursor(x, y, en); +} + +void video_console_set_cursor(unsigned int cursorx, unsigned int cursory) +{ + if (console && console->set_cursor) + console->set_cursor(cursorx, cursory); +} + int video_console_init(void) { int i;