Tuix.Cell (tuix v0.1.0)

Copy Markdown View Source

A single terminal cell: one grapheme plus its styling.

Wide graphemes (CJK, emoji) occupy two columns; the second column holds a cell whose char is :continuation and is skipped when writing output.

Summary

Functions

The default blank cell.

Returns the {fg, bg, attrs} style triple of a cell.

Types

t()

@type t() :: %Tuix.Cell{
  attrs: [atom()],
  bg: Tuix.Color.t(),
  char: String.t() | :continuation,
  fg: Tuix.Color.t()
}

Functions

blank()

The default blank cell.

style(cell)

Returns the {fg, bg, attrs} style triple of a cell.