diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-04-05 12:04:25 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-04-05 15:57:05 +0300 |
commit | 4930d1b46c8a7288ac12124c2fe023dfcb83e754 (patch) | |
tree | da282c5b5956745660d29d86236b7ef010f561fd /src/state.rs | |
parent | e9a935dbf7feab39d8e21382c16f2b9ce0016cf9 (diff) |
Add Italics, Blink, Dim and Hidden text attributes
Text attributes have been rewritten as bit flags, so for example instead of
"BoldUnderline" you'd have to define "Bold | Underline" in your theme
settings.
Requested in #21
Diffstat (limited to 'src/state.rs')
-rw-r--r-- | src/state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.rs b/src/state.rs index e5a4db9b..a7e35fac 100644 --- a/src/state.rs +++ b/src/state.rs @@ -695,7 +695,7 @@ impl State { .unwrap(); let mut current_fg = Color::Default; let mut current_bg = Color::Default; - let mut current_attrs = Attr::Default; + let mut current_attrs = Attr::DEFAULT; write!(stdout, "\x1B[m").unwrap(); for x in x_start..=x_end { let c = &grid[(x, y)]; @@ -730,7 +730,7 @@ impl State { cursor::Goto(x_start as u16 + 1, (y + 1) as u16) ) .unwrap(); - let mut current_attrs = Attr::Default; + let mut current_attrs = Attr::DEFAULT; write!(stdout, "\x1B[m").unwrap(); for x in x_start..=x_end { let c = &grid[(x, y)]; |