NetcanOS
Netcan OS is an operation system for x86 PCs, for learning how os works.
函数 | 变量
video_terminal.c 文件参考
#include <io.h>
#include <video_terminal.h>
#include <string.h>

函数

void print_char (char character, int row, int col, char attribute_byte)
 在第row行,第col列打印属性为attribute_byte的字符character,打印函数中的最底层。 更多...
 
void print_at (const char *string, int row, int col)
 在第row行,第col列打印字符串。 更多...
 
void print (const char *string)
 在当前行打印字符串。 更多...
 
void clear_vt (void)
 清屏。 更多...
 

变量

u8 *const VRAM = (u8*)VRAM_ADDRESS
 

函数说明

◆ clear_vt()

void clear_vt ( void  )

清屏。

◆ print()

void print ( const char *  string)

在当前行打印字符串。

参数
string字符串

◆ print_at()

void print_at ( const char *  string,
int  row,
int  col 
)

在第row行,第col列打印字符串。

参数
string字符串
row行数
col列数

◆ print_char()

void print_char ( char  character,
int  row,
int  col,
char  attribute_byte 
)

在第row行,第col列打印属性为attribute_byte的字符character,打印函数中的最底层。

参数
character8位ASCII字符
row行数
col列数
attribute_byte字符的属性(颜色)

变量说明

◆ VRAM

u8* const VRAM = (u8*)VRAM_ADDRESS