Crate ttygrid[][src]

Expand description

ttygrid provides functionality for displaying table-ized text to users with appropriate padding and width management. With ttygrid, you merely need to feed it your data, some information about it, and it will automatically determine what to show to the user based on the available display width.

It is not intended for streaming (aka, not tty) situations. It probably only works on unix right now too.

The demo example some basic capabilities and should be reviewed for understanding this library; as well as learning the macros.


add_line defines a GridLine with GridItems attached.

grid defines a TTYGrid full of headers, which are associated with lines.

header defines a SafeGridHeader for use with the TTYGrid.


Type Definitions