This shows you the differences between two versions of the page.
|
c:conio.h:gettextinfo [2013/02/08 19:47] 127.0.0.1 external edit |
c:conio.h:gettextinfo [2024/02/16 01:05] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== gettextinfo ====== | ====== gettextinfo ====== | ||
| <code c> | <code c> | ||
| + | void gettextinfo(struct text_info *r); | ||
| </code> | </code> | ||
| + | |||
| ==== description of gettextinfo ==== | ==== description of gettextinfo ==== | ||
| - | gettextinfo is in work by code-reference.com \\ | + | Retrieves information from text-mode. |
| - | if you are faster... don't hasitate and add it | + | |
| + | 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 | ||
| <code c> | <code c> | ||
| - | no example at the moment | + | #include <conio.h> |
| + | |||
| + | int main(void) | ||
| + | { | ||
| + | struct text_info information; | ||
| + | gettextinfo(&information); | ||
| + | clrscr(); | ||
| + | cprintf("window left %2d\r\n",information.winleft); | ||
| + | return 0; | ||
| + | } | ||
| </code> | </code> | ||
| ===== output of gettextinfo c example ===== | ===== output of gettextinfo c example ===== | ||
| - | no example at the moment | + | window left 1 |
| + | |||
| + | c:\Borland> | ||