User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:conio.h:gettextinfo

This is an old revision of the document!


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.

#include <conio.h>
 
int main(void)
{
    struct text_info information;
    gettextinfo(&information);
    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;
}

output of gettextinfo c example

  no example at the moment
advertising
c/conio.h/gettextinfo.1360369826.txt · Last modified: 2013/02/09 01:30 by 158.181.88.241

Impressum Datenschutz