User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:conio.h:gettextinfo

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>

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/conio.h/gettextinfo.txt · Last modified: 2024/02/16 01:05 (external edit)

Impressum Datenschutz