NetcanOS
Netcan OS is an operation system for x86 PCs, for learning how os works.
video_terminal.h
浏览该文件的文档.
1 /*************************************************************************
2  > File Name: drivers/video_terminal.h
3  > Author: Netcan
4  > Blog: http://www.netcan666.com
5  > Mail: 1469709759@qq.com
6  > Created Time: 2018-07-08 Sun 11:57:51 CST
7  ************************************************************************/
8 
9 #include <io.h>
10 #ifndef VIDEO_TERMINAL_H
11 #define VIDEO_TERMINAL_H
12 #define VRAM_ADDRESS 0xb8000
13 
16 #define MAX_ROW 25
17 #define MAX_COL 80
18 #define WHITE_ON_BLACK 0x0f
19 
24 #define REG_SCREEN_CTRL 0x3d4
25 #define REG_SCREEN_DATA 0x3d5
26 
27 #define TABSIZE 8
28 
29 extern u8 * const VRAM;
30 void clear_vt(void);
31 
32 void print_char(char character, int row, int col, char attribute_byte);
33 
34 void print_at(const char* string, int row, int col);
35 
36 void print(const char* string);
37 #endif
38 
u8 *const VRAM
Definition: video_terminal.c:13
unsigned char u8
Definition: io.h:18
void print_char(char character, int row, int col, char attribute_byte)
在第row行,第col列打印属性为attribute_byte的字符character,打印函数中的最底层。
Definition: video_terminal.c:69
void print_at(const char *string, int row, int col)
在第row行,第col列打印字符串。
Definition: video_terminal.c:102
void clear_vt(void)
清屏。
Definition: video_terminal.c:118
void print(const char *string)
在当前行打印字符串。
Definition: video_terminal.c:110