video.h

来自「Jazmyn is a 32-bit, protected mode, mult」· C头文件 代码 · 共 24 行

H
24
字号
#ifndef _VIDEO_H
#define _VIDEO_H

class VideoMemory
{
        unsigned short* m_VideoMemory;
        int m_Row;
        int m_Col;
public:
        VideoMemory();
        void init_video();
        void Write(char *str,short attr=0x7);   //write string terminated by 0
        void putch(char ch,short attr=0x7);     //write a single char
        void Scroll();                          //scroll the screen
        void clrscr();                          //clears the screen
        void gotoxy(int x,int y);               //goto position x,y
        int getrow();                           //return current row
        int getcol();                           //return current column
        void appendcursor();                    //update the cursor
        void displaynum(uint num,int base);      //display number (base=10,16..)
};

#endif

⌨️ 快捷键说明

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