aboutsummaryrefslogtreecommitdiffstats
path: root/src/cell.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-31 14:33:05 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-31 14:33:05 -0400
commit91726d4e0695ac4914885aada3304992e51bfb7f (patch)
tree26c44c77dbbba329a7633b3bfa6b5bd21628bafa /src/cell.rs
parent4ca747a83a82612f8fcd4e762ef701993e55b95c (diff)
downloadvt100-rust-91726d4e0695ac4914885aada3304992e51bfb7f.tar.gz
vt100-rust-91726d4e0695ac4914885aada3304992e51bfb7f.zip
implement window_contents_formatted
Diffstat (limited to 'src/cell.rs')
-rw-r--r--src/cell.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cell.rs b/src/cell.rs
index 370feb0..8c330ac 100644
--- a/src/cell.rs
+++ b/src/cell.rs
@@ -43,6 +43,10 @@ impl Cell {
crate::unicode::str_width(&self.contents) > 1
}
+ pub(crate) fn attrs(&self) -> &crate::attrs::Attrs {
+ &self.attrs
+ }
+
pub fn fgcolor(&self) -> crate::color::Color {
self.attrs.fgcolor
}