system_lib.h

来自「哈工大的几个人开发的操作系统pyos的部分源码」· C头文件 代码 · 共 20 行

H
20
字号
#ifndef _PYOS_SYSTEM_LIB_
#define _PYOS_SYSTEM_LIB_

/* 系统显示输出库 */
/* 由于是系统调用库,所以它们的实际代码只有一份,因此不能被链接到其余进程里面 */
/* 因此,只有系统调用函数才有必要做为public,而其余的函数都是由系统调用函数调用的 */
class class_pyos_SystemLib_Video{
  protected:
    static unsigned int cursor_x_pos ;
    static unsigned int cursor_y_pos ;
    static void SetCursor( int x_pos , int y_pos ) ;
    static void Scroll() ;

  public:
    static void Print( int x_pos , int y_pos , char ch , char style ) ; 
    static void Clear() ;
} ;

#endif

⌨️ 快捷键说明

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