This shows you the differences between two versions of the page.
c:conio.h:gettextinfo [2013/02/09 01:30] 158.181.88.241 |
c:conio.h:gettextinfo [2024/02/16 01:05] (current) |
||
---|---|---|---|
Line 10: | Line 10: | ||
transfers the current text mode video information into the structure text_info pointed to by r. | transfers the current text mode video information into the structure text_info pointed to by r. | ||
+ | available is | ||
+ | wintop, winleft, winright, winbottom, attribute, normattr, currmode, screenheight, screenwidth, curx, cury | ||
Line 19: | Line 21: | ||
struct text_info information; | struct text_info information; | ||
gettextinfo(&information); | gettextinfo(&information); | ||
+ | clrscr(); | ||
cprintf("window left %2d\r\n",information.winleft); | cprintf("window left %2d\r\n",information.winleft); | ||
- | cprintf("window top %2d\r\n",information.wintop); | ||
- | cprintf("window right %2d\r\n",information.winright); | ||
- | cprintf("window bottom %2d\r\n",information.winbottom); | ||
- | cprintf("attribute %2d\r\n",information.attribute); | ||
- | cprintf("normal attribute %2d\r\n",information.normattr); | ||
- | cprintf("current mode %2d\r\n",information.currmode); | ||
- | cprintf("screen height %2d\r\n",information.screenheight); | ||
- | cprintf("screen width %2d\r\n",information.screenwidth); | ||
- | cprintf("current x %2d\r\n",information.curx); | ||
- | cprintf("current y %2d\r\n",information.cury); | ||
return 0; | return 0; | ||
} | } | ||
Line 35: | Line 28: | ||
===== output of gettextinfo c example ===== | ===== output of gettextinfo c example ===== | ||
- | no example at the moment | + | window left 1 |
+ | |||
+ | c:\Borland> |