aboutsummaryrefslogtreecommitdiffstats
path: root/src/cell.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-08 03:35:44 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-08 03:38:00 -0500
commitac6aa6cb1659dd716701e2af41756ed3fe5faf0d (patch)
tree421d104e9590e846c8990b6ff5777f9dd59b82cf /src/cell.rs
parent484e4439a7984dd55d46eb432f5b7822b12b2c4a (diff)
downloadvt100-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.rs3
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.