lazy tables with stuipd wrapping
Getting Started
Add the following dependency to your Cargo manifest…
[]
= "0.1"
and look at the docs:
Example
extern crate lazytable;
use Table;
This will output:
who | what | when
-----|----------|------
da | foobar | bar
| foobar |
da | foobar!! | bar
Why?
prettytable is awesome. But wrapping in a teminal is no fun.
What can it do?
For now lazytable only produces a simple table like this (given a terminal width of 20):
Given width of 20
:
######################
# da | foobar | bar #
# | foobar | #
# da | foobar! | bar #
######################
Without a width or with prettytable:
######################
# da | foobar foobar #
#| bar #
# da | foobar! | bar #
######################
TODO
- clean up code
- make it configuarable to some extend
- write proper doc