From de081d7b1d0b791b2e61f9cde7369ea11647e0ae Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Fri, 5 Jul 2019 22:45:57 -0400 Subject: an @-sign in a box --- src/display/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/display/mod.rs (limited to 'src/display/mod.rs') 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(out: &mut T) -> io::Result<()> { + write!(out, "{}{}{}", clear::All, style::Reset, cursor::Goto(1, 1)) +} -- cgit 1.4.1