From 91726d4e0695ac4914885aada3304992e51bfb7f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 31 Oct 2019 14:33:05 -0400 Subject: implement window_contents_formatted --- src/cell.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cell.rs') 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 } -- cgit v1.2.3-54-g00ecf