summaryrefslogtreecommitdiffstats
path: root/src/term.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.rs')
-rw-r--r--src/term.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/term.rs b/src/term.rs
index 2cfd70e..6b19c1b 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -51,7 +51,6 @@ pub trait ScreenExt: Write {
}
fn reset(&mut self) -> HResult<()> {
write!(self, "{}", termion::style::Reset)?;
- self.flush()?;
Ok(())
}
fn clear(&mut self) -> HResult<()> {
@@ -60,7 +59,6 @@ pub trait ScreenExt: Write {
}
fn write_str(&mut self, str: &str) -> HResult<()> {
write!(self, "{}", str)?;
- self.flush()?;
Ok(())
}
fn goto_xy(&mut self, x: usize, y: usize) -> HResult<()> {
@@ -149,6 +147,9 @@ pub fn sized_string_u(string: &str, xsize: usize) -> String {
// Do these as constants
+
+
+
pub fn highlight_color() -> String {
format!(
"{}",