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