From 9e393263e820c328355ac58584ac635540ef2e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sun, 2 May 2021 22:53:30 +0200 Subject: add basic window abstraction --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index a1a4220..59ed28d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ -mod db; mod buffer; +mod db; +mod window; use crate::buffer::{Client, Buffer}; use crate::buffer::Threads; @@ -16,8 +17,7 @@ fn main() { let mut screen = termion::cursor::HideCursor::from(screen); let threads = Threads::from_query(String::from("tag:inbox")); - threads.init(&mut screen); - let client = Client::new(Buffer::Threads(threads)); - client.run(screen, stdin); + let client = Client::new(Buffer::Threads(threads), &mut screen); + client.run(&mut screen, stdin); } -- cgit v1.2.1