console.c

来自「操作系统试验!通过这个试验」· C语言 代码 · 共 74 行

C
74
字号
/** @file console.c *  @brief A console driver. * *  These empty function definitions are provided *  so that stdio will build without complaining. *  You will need to fill these functions in. This *  is the implementation of the console driver. *  Important details about its implementation *  should go in these comments. * *  @author Harry Q. Bovik (hqbovik) *  @author Fred Hacker (fhacker) *  @bug No know bugs. */#include <console.h>#include <x86/pic.h>int putbyte( char ch ){	return ch;}void putbytes(const char* s, int len){	return;}void set_term_color( int c ){	return;}void get_term_color( int *c ){	return;}void set_cursor( int row, int col ){	return;}void get_cursor( int *row, int *col ){	return;}void hide_cursor(){	return;}void show_cursor(){	return;}void clear_console(){	return;}void draw_char( int row, int col, int ch, int color ){	return;}char get_char( int row, int col ){	return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?