about summary refs log tree commit diff
path: root/src/display/mod.rs
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-07-06T02·45-0400
committerGriffin Smith <root@gws.fyi>2019-07-06T02·45-0400
commitde081d7b1d0b791b2e61f9cde7369ea11647e0ae (patch)
tree687236ac6ca2d094053fa43112d967554531de86 /src/display/mod.rs
an @-sign in a box
Diffstat (limited to 'src/display/mod.rs')
-rw-r--r--src/display/mod.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/display/mod.rs b/src/display/mod.rs
new file mode 100644
index 000000000000..5dba48b44d9a
--- /dev/null
+++ b/src/display/mod.rs
@@ -0,0 +1,9 @@
+pub mod draw_box;
+pub mod utils;
+pub use draw_box::{make_box, BoxStyle};
+use std::io::{self, Write};
+use termion::{clear, cursor, style};
+
+pub fn clear<T: Write>(out: &mut T) -> io::Result<()> {
+    write!(out, "{}{}{}", clear::All, style::Reset, cursor::Goto(1, 1))
+}