summaryrefslogtreecommitdiffstats
path: root/src/term.rs
diff options
context:
space:
mode:
authorrabite <rabite@posteo.de>2019-03-16 22:49:27 +0100
committerrabite <rabite@posteo.de>2019-03-17 00:19:58 +0100
commit8b1c4db9cfa2ea0bf02e9e96c29b2510bbc391af (patch)
treef3c2b0e857691ae968d54269a0cd3b8067d36dbc /src/term.rs
parent33a9562379b9d6fdd7be19ce20b3a5ac1fa7e1c7 (diff)
big performance improvement
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!(
"{}",