Go to the first, previous, next, last section, table of contents.


gettextinfo

Syntax

#include <conio.h>

void    gettextinfo(struct text_info *_r);

Description

This function returns the parameters of the current window on the screen. The return structure is this:

struct text_info {
    unsigned char winleft;
    unsigned char wintop;
    unsigned char winright;
    unsigned char winbottom;
    unsigned char attribute;
    unsigned char normattr;
    unsigned char currmode;
    unsigned char screenheight;
    unsigned char screenwidth;
    unsigned char curx;
    unsigned char cury;
};

The normattr field is the text attribute which was in effect before the program started.

Portability

not ANSI, not POSIX


Go to the first, previous, next, last section, table of contents.