MentOS
0.8.0
The Mentoring Operating System
|
Video functions and costants. More...
Go to the source code of this file.
Functions | |
void | video_init (void) |
Initialize the video. | |
void | video_update (void) |
Updates the video. | |
void | video_putc (int c) |
Print the given character on the screen. More... | |
void | video_puts (const char *str) |
Prints the given string on the screen. More... | |
void | video_set_cursor_auto (void) |
When something is written in another position, update the cursor. | |
void | video_move_cursor (unsigned int x, unsigned int y) |
Move the cursor at the position x, y on the screen. More... | |
void | video_get_cursor_position (unsigned int *x, unsigned int *y) |
Returns cursor's position on the screen. More... | |
void | video_get_screen_size (unsigned int *width, unsigned int *height) |
Returns screen size. More... | |
void | video_clear (void) |
Clears the screen. | |
void | video_new_line (void) |
Move to the following line (the effect of character). | |
void | video_cartridge_return (void) |
Move to the up line (the effect of character). | |
void | video_shift_one_line_up (void) |
The whole screen is shifted up by one line. Used when the cursor reaches the last position of the screen. | |
void | video_shift_one_page_up (void) |
The whole screen is shifted up by one page. | |
void | video_shift_one_page_down (void) |
The whole screen is shifted down by one page. | |
Video functions and costants.
void video_get_cursor_position | ( | unsigned int * | x, |
unsigned int * | y | ||
) |
Returns cursor's position on the screen.
x | The output x coordinate. |
y | The output y coordinate. |
void video_get_screen_size | ( | unsigned int * | width, |
unsigned int * | height | ||
) |
Returns screen size.
width | The screen width. |
height | The screen height. |
void video_move_cursor | ( | unsigned int | x, |
unsigned int | y | ||
) |
Move the cursor at the position x, y on the screen.
x | The x coordinate. |
y | The y coordinate. |
void video_putc | ( | int | c | ) |
Print the given character on the screen.
c | The character to print. |
void video_puts | ( | const char * | str | ) |
Prints the given string on the screen.
str | The string to print. |