MentOS  0.8.0
The Mentoring Operating System
Functions
video.h File Reference

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.
 

Detailed Description

Video functions and costants.

Function Documentation

◆ video_get_cursor_position()

void video_get_cursor_position ( unsigned int *  x,
unsigned int *  y 
)

Returns cursor's position on the screen.

Parameters
xThe output x coordinate.
yThe output y coordinate.

◆ video_get_screen_size()

void video_get_screen_size ( unsigned int *  width,
unsigned int *  height 
)

Returns screen size.

Parameters
widthThe screen width.
heightThe screen height.

◆ video_move_cursor()

void video_move_cursor ( unsigned int  x,
unsigned int  y 
)

Move the cursor at the position x, y on the screen.

Parameters
xThe x coordinate.
yThe y coordinate.

◆ video_putc()

void video_putc ( int  c)

Print the given character on the screen.

Parameters
cThe character to print.

◆ video_puts()

void video_puts ( const char *  str)

Prints the given string on the screen.

Parameters
strThe string to print.