terminal 0.2.1

Unified API over different TUI libraries.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::Color;
use crosscurses::Attributes;

pub(crate) struct CurrentStyle {
    pub(crate) foreground: Color,
    pub(crate) background: Color,
    pub(crate) attributes: Attributes,
}

impl CurrentStyle {
    pub(crate) fn new() -> CurrentStyle {
        CurrentStyle {
            foreground: Color::Reset,
            background: Color::Reset,
            attributes: Attributes::new(),
        }
    }
}