FreeBASIC  0.91.0
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 
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 
25 {
26  /* !!!FIXME!!! there must be an attribute for each page */
27  return ScreenAttrib;
28 }