📄 scroll.c
字号:
#include<dos.h>
#include<conio.h>
#include<stdio.h>
/*窗口滚屏(左上角,右下角,向上或向下(0,1),背景颜色)*/
void scroll(int left,int top,int right,int bottom,int status,int bkcolor)
{
union REGS regs;
light_mouse(OFF);
regs.h.ah=6+status; /*ah=06h 向上滚动当前页,ah=07h 向下.... */
regs.h.al=1;
regs.h.bh=16*bkcolor;
regs.h.ch=top-1; /*左上角行*/
regs.h.cl=left-1; /*列*/
regs.h.dh=bottom-1; /*右下角行*/
regs.h.dl=right-1; /*列*/
int86(0x10,®s,®s);
light_mouse(ON);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -