pub struct Cell { /* private fields */ }
Expand description
Represents a single terminal cell.
Implementations§
source§impl Cell
impl Cell
sourcepub fn contents(&self) -> String
pub fn contents(&self) -> String
Returns the text contents of the cell.
Can include multiple unicode characters if combining characters are used, but will contain at most one character with a non-zero character width.
sourcepub fn has_contents(&self) -> bool
pub fn has_contents(&self) -> bool
Returns whether the cell contains any text data.
sourcepub fn is_wide(&self) -> bool
pub fn is_wide(&self) -> bool
Returns whether the text data in the cell represents a wide character.
sourcepub fn is_wide_continuation(&self) -> bool
pub fn is_wide_continuation(&self) -> bool
Returns whether the cell contains the second half of a wide character (in other words, whether the previous cell in the row contains a wide character)
sourcepub fn bold(&self) -> bool
pub fn bold(&self) -> bool
Returns whether the cell should be rendered with the bold text attribute.
sourcepub fn italic(&self) -> bool
pub fn italic(&self) -> bool
Returns whether the cell should be rendered with the italic text attribute.