1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
use super::{Color, Style};

#[derive(Copy, Clone)]
pub struct Block {
    pub c: char,
    pub fg: Color,
    pub bg: Color,
    pub style: Style
}

impl Block {
    pub fn new() -> Self {
        Block {
            c: ' ',
            fg: Color::ansi(7),
            bg: Color::ansi(0),
            style: Style::Normal
        }
    }
}