FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
io_color.c
Go to the documentation of this file.
1
/* console COLOR statement */
2
3
#include "../fb.h"
4
#include "
fb_private_console.h
"
5
#include <pc.h>
6
7
static
int
last_bc
=
FB_COLOR_BLACK
,
last_fc
=
FB_COLOR_WHITE
;
8
9
int
fb_ConsoleColor
(
int
fc,
int
bc,
int
flags )
10
{
11
int
cur =
last_fc
| (
last_bc
<< 16);
12
13
if
( !( flags &
FB_COLOR_FG_DEFAULT
) )
14
last_fc
= fc & 15;
15
16
if
( !( flags &
FB_COLOR_BG_DEFAULT
) )
17
last_bc
= bc & 15;
18
19
ScreenAttrib =
last_fc
| (
last_bc
<< 4);
20
21
return
cur;
22
}
23
24
int
fb_ConsoleGetColorAtt
(
void
)
25
{
26
/* !!!FIXME!!! there must be an attribute for each page */
27
return
ScreenAttrib;
28
}
rtlib
dos
io_color.c
Generated on Thu Jan 23 2014 19:40:08 for FreeBASIC by
1.8.4