summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-04-05 12:04:25 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-04-05 15:57:05 +0300
commit4930d1b46c8a7288ac12124c2fe023dfcb83e754 (patch)
treeda282c5b5956745660d29d86236b7ef010f561fd /src/state.rs
parente9a935dbf7feab39d8e21382c16f2b9ce0016cf9 (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.rs4
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)];