small software-rendered rust tty
-rw-r--r--src/term.rs2
-rw-r--r--src/term/cells.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/term.rs b/src/term.rs
index 9816335..076f101 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -135,7 +135,7 @@ impl Terminal {
use StyleAction::*;
match action {
Reset => self.style = DSTYLE,
- SetFg(c) => self.style.color = c,
+ SetFg(c) => self.style.fg = c,
SetBg(c) => self.style.bg = c,
ModeSet(1) => self.style.flags |= BOLD,
ModeSet(2) => self.style.flags |= DIM,
diff --git a/src/term/cells.rs b/src/term/cells.rs
index 033bd52..45d9048 100644
--- a/src/term/cells.rs
+++ b/src/term/cells.rs
@@ -33,7 +33,8 @@ impl Debug for Cells {
}
pub const DSTYLE: Style = Style {
bg: crate::colors::BACKGROUND,
- color: crate::colors::FOREGROUND,
+ fg: crate::colors::FOREGROUND,
+ secondary_color: crate::colors::FOREGROUND,
flags: 0,
};
pub const DCELL: Cell = Cell { style: DSTYLE, letter: None };