add console_set_cursor_position()

This commit is contained in:
Laurent Vivier 2007-06-01 20:48:44 +00:00
parent afa4db753e
commit bc2f989dd6
2 changed files with 6 additions and 0 deletions

View File

@ -107,4 +107,9 @@ void console_video_normal(void)
{
printf("\033[27m");
}
void console_set_cursor_position(int x, int y)
{
printf("\033[%d;%dH", y, x);
}
#endif

View File

@ -25,6 +25,7 @@ extern void console_cursor_save(void);
extern void console_cursor_restore(void);
extern void console_video_inverse(void);
extern void console_video_normal(void);
extern void console_set_cursor_position(int x, int y);
#endif
#endif