[][src]Module meli::terminal::cells

Define a (x, y) point in the terminal display as a holder of a character, foreground/background colors and attributes.

Re-exports

pub use boundaries::create_box;

Modules

ansi

Create a CellBuffer from a string slice containing ANSI escape codes.

boundaries

Structs

Attr

The attributes of a Cell.

BoundsIterator

BoundsIterator iterates each row returning a RowIterator.

Cell

A single point on a terminal display.

CellBuffer

An array of Cells that represents a terminal display.

FormatTag
RowIterator

Use RowIterator to iterate the cells of a row without the need to do any bounds checking; the iterator will simply return None when it reaches the end of the row. RowIterator can be created via the CellBuffer::row_iter method and can be returned by BoundsIterator which iterates each row.

ScrollRegion

In a scroll region up and down cursor movements shift the region vertically. The new lines are empty.

Enums

WidgetWidth

Functions

change_colors

Change foreground and background colors in an Area

clear_area

Completely clear an Area with an empty char and the terminal's default colors.

copy_area

Copy a source Area to a destination.

copy_area_with_break
write_string_to_grid

Write an &str to a CellBuffer in a specified Area with the passed colors.