txtframe

Display text in a frame.

Displays text within predefined or custom frames. You can set the frame color, change the text alignment.

Examples

```rust

use txtframe::*;

let mut textframe = TextFrame::new() .framevar(&FrameVar::Space) .algn(Algn::Centr) .colorfra(Color::Red) .colortxt(Color::Cyan) .colorfill(Color::Magenta) .expand(0) .width(100) .expandwidth(0) .expandheight(0) .lefttop('✤') .righttop('✤') .leftbtm('✤') .rightbtm('✤') .topline('―') .vertleft('│') .vertright('│') .btm_line('―') .fill('░');

let textframeiter = textframe.frameiter("Text frame"); println!("{}", textframeiter.collect::()); ```

License

GNU General Public License v3.0