⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 video.h

📁 Jazmyn is a 32-bit, protected mode, multitasking OS which runs on i386 & above CPU`s. Its complete
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -