aboutsummaryrefslogtreecommitdiffstats
path: root/src/cell.rs
diff options
context:
space:
mode:
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.