FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
io_width.c
Go to the documentation of this file.
1
/* console width() function */
2
3
#include "../fb.h"
4
#include "
fb_private_console.h
"
5
#include <conio.h>
6
#include <pc.h>
7
8
int
fb_ConsoleWidth
(
int
cols,
int
rows )
9
{
10
int
cur = ScreenCols() | (ScreenRows() << 16);
11
12
if
( (cols > 0) || (rows > 0) )
13
{
14
if
( rows <= 0 )
15
rows = ScreenRows();
16
17
if
( cols <= 0 )
18
cols = ScreenCols();
19
20
if
(cols == 40)
21
textmode(C40);
22
else
23
textmode(C80);
24
25
_set_screen_lines(rows);
26
27
/* turn off blink */
28
intensevideo();
29
}
30
31
return
cur;
32
}
rtlib
dos
io_width.c
Generated on Thu Jan 23 2014 19:40:10 for FreeBASIC by
1.8.4