MentOS  0.8.0
The Mentoring Operating System
video.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "stdint.h"
9 #include "io/ansi_colors.h"
10 
12 void video_init(void);
13 
15 void video_update(void);
16 
19 void video_putc(int c);
20 
23 void video_puts(const char *str);
24 
26 void video_set_cursor_auto(void);
27 
31 void video_move_cursor(unsigned int x, unsigned int y);
32 
36 void video_get_cursor_position(unsigned int * x, unsigned int * y);
37 
41 void video_get_screen_size(unsigned int * width, unsigned int * height);
42 
44 void video_clear(void);
45 
47 void video_new_line(void);
48 
50 void video_cartridge_return(void);
51 
54 void video_shift_one_line_up(void);
55 
57 void video_shift_one_page_up(void);
58 
60 void video_shift_one_page_down(void);
List of ANSI colors.
Standard integer data-types.
void video_move_cursor(unsigned int x, unsigned int y)
Move the cursor at the position x, y on the screen.
Definition: video.c:267
void video_get_cursor_position(unsigned int *x, unsigned int *y)
Returns cursor's position on the screen.
Definition: video.c:279
void video_set_cursor_auto(void)
When something is written in another position, update the cursor.
Definition: video.c:258
void video_update(void)
Updates the video.
Definition: video.c:180
void video_cartridge_return(void)
Move to the up line (the effect of character).
Definition: video.c:336
void video_puts(const char *str)
Prints the given string on the screen.
Definition: video.c:245
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 scr...
Definition: video.c:350
void video_get_screen_size(unsigned int *width, unsigned int *height)
Returns screen size.
Definition: video.c:295
void video_shift_one_page_down(void)
The whole screen is shifted down by one page.
Definition: video.c:382
void video_putc(int c)
Print the given character on the screen.
Definition: video.c:188
void video_init(void)
Initialize the video.
Definition: video.c:175
void video_new_line(void)
Move to the following line (the effect of character).
Definition: video.c:323
void video_shift_one_page_up(void)
The whole screen is shifted up by one page.
Definition: video.c:368
void video_clear(void)
Clears the screen.
Definition: video.c:311