diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-08 03:35:44 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-08 03:38:00 -0500 |
commit | ac6aa6cb1659dd716701e2af41756ed3fe5faf0d (patch) | |
tree | 421d104e9590e846c8990b6ff5777f9dd59b82cf /src/cell.rs | |
parent | 484e4439a7984dd55d46eb432f5b7822b12b2c4a (diff) | |
download | vt100-rust-ac6aa6cb1659dd716701e2af41756ed3fe5faf0d.tar.gz vt100-rust-ac6aa6cb1659dd716701e2af41756ed3fe5faf0d.zip |
clearing cells sets the background color
Diffstat (limited to 'src/cell.rs')
-rw-r--r-- | src/cell.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cell.rs b/src/cell.rs index 285d37a..54f433d 100644 --- a/src/cell.rs +++ b/src/cell.rs @@ -23,9 +23,10 @@ impl Cell { } } - pub(crate) fn clear(&mut self) { + pub(crate) fn clear(&mut self, bgcolor: crate::attrs::Color) { self.contents.clear(); self.attrs.clear(); + self.attrs.bgcolor = bgcolor; } /// Returns the text contents of the cell. |