aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer/mod.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-05-04 00:49:56 +0200
committerGustav Sörnäs <gustav@sornas.net>2021-05-04 00:49:56 +0200
commit4f3a10a46ac81e6a317c1502fc6078d7429ee9d4 (patch)
treee120c315d3ee756a9358be48a6ebbf08c9f8e672 /src/buffer/mod.rs
parent882dacc3e7a7d517d1a317a9fef3514236c6e89c (diff)
downloadmail-4f3a10a46ac81e6a317c1502fc6078d7429ee9d4.tar.gz
initial draw correctlymain
Diffstat (limited to 'src/buffer/mod.rs')
-rw-r--r--src/buffer/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer/mod.rs b/src/buffer/mod.rs
index 1d7d22e..59eb2f1 100644
--- a/src/buffer/mod.rs
+++ b/src/buffer/mod.rs
@@ -25,6 +25,7 @@ impl Client {
Buffer::Threads(t) => t.fill_window(&mut window),
}
+ write!(out, "{}", termion::clear::All).unwrap();
window.draw(out, Area {
x: 1,
y: 1,
@@ -37,6 +38,7 @@ impl Client {
w: size.0,
h: 1,
}).unwrap();
+ out.flush().unwrap();
Self {
window,