textinfo.c

来自「C」· C语言 代码 · 共 22 行

C
22
字号
#include <conio.h>

void main(void)
 {
   struct text_info text;

   gettextinfo(&text);

   cprintf("Screen coordinates %d,%d to %d,%d\r\n",
     text.wintop, text.winleft, text.winbottom, text.winright);

   cprintf("Text attribute %d Normal attribute %d\r\n",
     text.attribute, text.normattr);

   cprintf("Screen height %d width %d\r\n", text.screenheight,
     text.screenwidth);

   cprintf("Cursor position was row %d column %d\r\n",
     text.cury, text.curx);
 }

⌨️ 快捷键说明

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