[][src]Module termwiz::cell

Model a cell in the terminal display

Re-exports

pub use crate::escape::osc::Hyperlink;

Structs

Cell

Models the contents of a cell on the terminal display

CellAttributes

Holds the attributes for a cell. Most style attributes are stored internally as part of a bitfield to reduce per-cell overhead. The setter methods return a mutable self reference so that they can be chained together.

Enums

AttributeChange

Models a change in the attributes of a cell in a stream of changes. Each variant specifies one of the possible attributes; the corresponding value holds the new value to be used for that attribute.

Blink

Specify whether you want to slowly or rapidly annoy your users

Intensity

The Intensity of a cell describes its boldness. Most terminals implement Intensity::Bold by either using a bold font or by simply using an alternative color. Some terminals implement Intensity::Half as a dimmer color variant.

SemanticType

Describes the semantic "type" of the cell. This categorizes cells into Output (from the actions the user is taking; this is the default if left unspecified), Input (that the user typed) and Prompt (effectively, "chrome" provided by the shell or application that the user is interacting with.

Underline

Specify just how underlined you want your Cell to be

Functions

grapheme_column_width

Returns the number of cells visually occupied by a grapheme. The input string must be a single grapheme.

unicode_column_width

Returns the number of cells visually occupied by a sequence of graphemes