diff options
author | Joe Wilm <joe@jwilm.com> | 2016-06-06 16:54:15 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-06-06 16:54:15 -0700 |
commit | cdea958e71fd59c8d2051feb4631badd6891e751 (patch) | |
tree | dc18120cb739e16a0c1a62eaaf42ff61091b3a7a /src/grid.rs | |
parent | 6636cf6b9fa03a711f8c3aa2d6ca43248fecfc0f (diff) | |
download | alacritty-cdea958e71fd59c8d2051feb4631badd6891e751.tar.gz alacritty-cdea958e71fd59c8d2051feb4631badd6891e751.zip |
Add support for drawing background colors
Diffstat (limited to 'src/grid.rs')
-rw-r--r-- | src/grid.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/grid.rs b/src/grid.rs index a3009f8b..f5c98afb 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -19,6 +19,13 @@ pub struct Cell { pub c: char, pub fg: Rgb, pub bg: Rgb, + pub flags: CellFlags, +} + +bitflags! { + pub flags CellFlags: u32 { + const INVERSE = 0b00000001, + } } impl Cell { @@ -27,6 +34,7 @@ impl Cell { c: c.into(), bg: Default::default(), fg: Default::default(), + flags: CellFlags::empty(), } } } |