struct Attribute [src]
Fields
foreground: ForegroundColor = .white
background: BackgroundColor = .black
Members
- BackgroundColor (enum)
- ForegroundColor (enum)
Source
pub const Attribute = packed struct(u8) {
foreground: ForegroundColor = .white,
background: BackgroundColor = .black,
pub const ForegroundColor = enum(u4) {
black,
blue,
green,
cyan,
red,
magenta,
brown,
lightgray,
darkgray,
lightblue,
lightgreen,
lightcyan,
lightred,
lightmagenta,
yellow,
white,
};
pub const BackgroundColor = enum(u4) {
black,
blue,
green,
cyan,
red,
magenta,
brown,
lightgray,
};
}