static void _gettextinfo(struct text_info *t) { int row, col; t->winleft = t->wintop = 1; t->winright = t->screenwidth = ScreenCols(); t->winbottom = t->screenheight = ScreenRows(); ScreenAttrib = t->attribute = t->normattr = get_screenattrib(); t->currmode = getvideomode(); ScreenGetCursor(&row, &col); t->curx = col+1; t->cury = row+1; #if DBGGTINFO printf("left=%2d,right=%2d,top=%2d,bottom=%2d\n",t->winleft, t->winright,t->wintop,t->winbottom); printf("scrht=%2d,scrwid=%2d,norm=%2x,mode=%2d,x=%2d,y=%2d\n", t->screenheight, t->screenwidth, t->normattr, t->currmode, t->curx, t->cury); #endif }
int huge IsTextGraphics(void) {int ch=getvideomode(); if(ch==0||ch==1||ch==2||ch==3||ch==7||ch==82||ch==83) return 0; return 1;}