FreeBASIC  0.91.0
io_getsize.c
Go to the documentation of this file.
1 #include "../fb.h"
2 #include "fb_private_console.h"
3 #include <pc.h>
4 
5 FBCALL void fb_ConsoleGetSize( int *cols, int *rows )
6 {
7 #if 0
8  int toprow, botrow;
9 #endif
10 
11  if( cols != NULL ) {
12  *cols = ScreenCols();
13  }
14 
15  if( rows != NULL ) {
16 #if 0
17  fb_ConsoleGetView( &toprow, &botrow );
18  *rows = botrow - toprow + 1;
19 #else
20  *rows = ScreenRows();
21 #endif
22  }
23 }