diff options
Diffstat (limited to 'alacritty_terminal/src/term/cell.rs')
-rw-r--r-- | alacritty_terminal/src/term/cell.rs | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/alacritty_terminal/src/term/cell.rs b/alacritty_terminal/src/term/cell.rs index 3fdd8cea..ee95fcba 100644 --- a/alacritty_terminal/src/term/cell.rs +++ b/alacritty_terminal/src/term/cell.rs @@ -12,19 +12,20 @@ pub const MAX_ZEROWIDTH_CHARS: usize = 5; bitflags! { #[derive(Serialize, Deserialize)] pub struct Flags: u16 { - const INVERSE = 0b000_0000_0001; - const BOLD = 0b000_0000_0010; - const ITALIC = 0b000_0000_0100; - const BOLD_ITALIC = 0b000_0000_0110; - const UNDERLINE = 0b000_0000_1000; - const WRAPLINE = 0b000_0001_0000; - const WIDE_CHAR = 0b000_0010_0000; - const WIDE_CHAR_SPACER = 0b000_0100_0000; - const DIM = 0b000_1000_0000; - const DIM_BOLD = 0b000_1000_0010; - const HIDDEN = 0b001_0000_0000; - const STRIKEOUT = 0b010_0000_0000; - const LEADING_WIDE_CHAR_SPACER = 0b100_0000_0000; + const INVERSE = 0b0000_0000_0000_0001; + const BOLD = 0b0000_0000_0000_0010; + const ITALIC = 0b0000_0000_0000_0100; + const BOLD_ITALIC = 0b0000_0000_0000_0110; + const UNDERLINE = 0b0000_0000_0000_1000; + const WRAPLINE = 0b0000_0000_0001_0000; + const WIDE_CHAR = 0b0000_0000_0010_0000; + const WIDE_CHAR_SPACER = 0b0000_0000_0100_0000; + const DIM = 0b0000_0000_1000_0000; + const DIM_BOLD = 0b0000_0000_1000_0010; + const HIDDEN = 0b0000_0001_0000_0000; + const STRIKEOUT = 0b0000_0010_0000_0000; + const LEADING_WIDE_CHAR_SPACER = 0b0000_0100_0000_0000; + const DOUBLE_UNDERLINE = 0b0000_1000_0000_0000; } } @@ -58,6 +59,7 @@ impl GridCell for Cell { && !self.flags.intersects( Flags::INVERSE | Flags::UNDERLINE + | Flags::DOUBLE_UNDERLINE | Flags::STRIKEOUT | Flags::WRAPLINE | Flags::WIDE_CHAR_SPACER |