mod buffer; mod db; mod window; use crate::buffer::{Client, Buffer}; use crate::buffer::Threads; use std::io::{stdin, stdout}; use termion::raw::IntoRawMode; fn main() { let stdin = stdin(); let screen = stdout().into_raw_mode().unwrap(); // let screen = AlternateScreen::from(screen); // hide the cursor let mut screen = termion::cursor::HideCursor::from(screen); let threads = Threads::from_query(String::from("tag:inbox")); let client = Client::new(Buffer::Threads(threads), &mut screen); client.run(&mut screen, stdin); }