diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-05-02 22:53:30 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-05-02 22:53:30 +0200 |
| commit | 9e393263e820c328355ac58584ac635540ef2e6b (patch) | |
| tree | 1dcb48b87c5f919afc1408bd5b508ba17c0a2ecc /src/main.rs | |
| parent | ea012211b6ad4d6973504b334816c568af9e60f3 (diff) | |
| download | mail-9e393263e820c328355ac58584ac635540ef2e6b.tar.gz | |
add basic window abstraction
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |
