xref: /freebsd/sys/i386/include/pc/display.h (revision 732a02b4e77866604a120a275c082bb6221bd2ff)
1 /*
2  * IBM PC display definitions
3  *
4  * $FreeBSD$
5  */
6 
7 /* Color attributes for foreground text */
8 
9 #define	FG_BLACK		   0
10 #define	FG_BLUE			   1
11 #define	FG_GREEN		   2
12 #define	FG_CYAN			   3
13 #define	FG_RED			   4
14 #define	FG_MAGENTA		   5
15 #define	FG_BROWN		   6
16 #define	FG_LIGHTGREY		   7
17 #define	FG_DARKGREY		   8
18 #define	FG_LIGHTBLUE		   9
19 #define	FG_LIGHTGREEN		  10
20 #define	FG_LIGHTCYAN		  11
21 #define	FG_LIGHTRED		  12
22 #define	FG_LIGHTMAGENTA		  13
23 #define	FG_YELLOW		  14
24 #define	FG_WHITE		  15
25 #define	FG_BLINK		0x80
26 
27 /* Color attributes for text background */
28 
29 #define	BG_BLACK		0x00
30 #define	BG_BLUE			0x10
31 #define	BG_GREEN		0x20
32 #define	BG_CYAN			0x30
33 #define	BG_RED			0x40
34 #define	BG_MAGENTA		0x50
35 #define	BG_BROWN		0x60
36 #define	BG_LIGHTGREY		0x70
37 
38 /* Monochrome attributes for foreground text */
39 
40 #define	FG_UNDERLINE		0x01
41 #define	FG_INTENSE		0x08
42 
43 /* Monochrome attributes for text background */
44 
45 #define	BG_INTENSE		0x10
46