struct Attribute [src]

Fields

foreground: ForegroundColor = .white
background: BackgroundColor = .black

Members

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, }; }