use crate::component::Cursed; use component::{Plan, Widget}; use std::{ io::{Stdout, Write}, time::Duration, }; use termion::raw::{IntoRawMode, RawTerminal}; use theme::{Color, ColorSet}; use token::Token; extern crate termion; mod component; mod theme; mod token; pub struct Display { // needs to hold the termion display screen: RawTerminal, } impl Display { pub fn new() -> Result { Ok(Self { screen: std::io::stdout().into_raw_mode()?, }) } }