#table #tui #alignment #unicode #terminal

alinio

A library to assist in alignment and table generation in TUI applications

4 releases

0.2.1 Feb 19, 2022
0.2.0 Feb 19, 2022
0.1.1 Feb 19, 2022
0.1.0 Feb 19, 2022

#888 in Command-line interface

Download history 57/week @ 2024-07-27 53/week @ 2024-08-03 39/week @ 2024-08-10 32/week @ 2024-08-17 19/week @ 2024-08-24 45/week @ 2024-08-31 118/week @ 2024-09-07 151/week @ 2024-09-14 137/week @ 2024-09-21 165/week @ 2024-09-28 88/week @ 2024-10-05 158/week @ 2024-10-12 172/week @ 2024-10-19 200/week @ 2024-10-26 144/week @ 2024-11-02 62/week @ 2024-11-09

591 downloads per month

MIT license

31KB
519 lines

Alinio

A library to assist in alignment and table generation in TUI applications

This library contains utilties to align text, and build tables. It contains a very powerful table struct that allows creation of responsive, padded and aligned tables that make creating complicated interfaces quite simple.

Installation

Go ahead and add in alinio = "0" into your Cargo.toml under [dependencies].

Usage example

You can find a few examples under the documentation over on https://docs.rs/alinio

I've made sure to properly document this library, but please let me know if you don't understand anything.

Release History

  • 0.2.1
    • Made table rendering context aware, so that whitespace and columns don't weirdly change when scrolling
  • 0.2.0
    • Added partial_render function to allow for rendering only part of the table
  • 0.1.1
    • Fixed panic when there is not enough space to render the table when surround is false
  • 0.1.0
    • Inital release

Distributed under the MIT license. See LICENSE for more information.

Dependencies

~1.5MB
~19K SLoC