 
			
		Structure of a character attribute consists of 4 bit fore- and 3 bit background color, and a single blink bit. More...
#include <machine/textmode.h>
| Public Member Functions | |
| Attribute (Color foreground=LIGHT_GREY, Color background=BLACK, bool blink=false) | |
| Attribute constructor (with default values)  More... | |
| Public Attributes | |
| struct { | |
| uint8_t | foreground: 4 | 
| .... XXXXForeground color | |
| uint8_t | background: 3 | 
| .XXX ....Background color | |
| uint8_t | blink: 1 | 
| X... ....Blink | |
| }; | |
| uint8_t | value | 
| combined value | |
Structure of a character attribute consists of 4 bit fore- and 3 bit background color, and a single blink bit.
Bit fields can notably simplify the access and code readability.
-fno-strict-aliasing). In StuBS we use this feature extensively due to the improved code readability. | 
 | inlineexplicit | 
Attribute constructor (with default values)
| foreground | Foreground color (Default: LIGHT_GREY) | 
| background | Background color (Default: BLACK) | 
| blink | Blink if true(default: no blinking) |