Table of Contents

gettextinfo

void gettextinfo(struct text_info *r);

description of gettextinfo

Retrieves information from text-mode.

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

#include <conio.h>
 
int main(void)
{
    struct text_info information;
    gettextinfo(&information);
    clrscr();
    cprintf("window left      %2d\r\n",information.winleft);
    return 0;
}

output of gettextinfo c example

  window left       1
  
  c:\Borland>