text_box 0.2.4

Create useful messages in console with text boxes using 'termion'.
Documentation
extern crate text_box;

use text_box::TextBox;
use text_box::utils::{clear_screen, goto};

fn main() {
	clear_screen();

	let box1 = TextBox::new(
        30, 10,
        15, 6,
        2,
        "Box 1",
        "This box have a border type 2. A first level message, must be checked quickly."
    ).unwrap();
    let box2 = TextBox::new(
        10, 10,
        15, 6,
        0,
        "Box 2",
        "This box have a border type 0. Normal boxed text for alingment."
    ).unwrap();
    let box3 = TextBox::new(
        10, 2,
        35, 6,
        1,
        "Box 3",
        "This box have a border type 1. A second level message. \n You can create multiple boxes, just be careful with console window size."
    ).unwrap();
    let box4 = TextBox::new(
        47, 2,
        15, 14,
        2,
        "Box 4",
        "If you want a new line inside a box you need to put it between spaces like \n this: ' \\n '. Formatter identifies this as a new line word, so it can be printed. \n \n Right?"
    ).unwrap();

	println!("{}{}{}{}", box1, box2, box3, box4);
	
	goto(1, 40);
}