diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-04-01 17:39:31 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-04-01 17:39:31 -0500 |
commit | 25cbec9695b290d0d17f942c5bafd4187dd1e25c (patch) | |
tree | 335956a0548e061a5985543010096e983b857260 /src | |
parent | 211ca6b62471d26fe70d0f51d63b73bcb478dc14 (diff) | |
download | rust-term-25cbec9695b290d0d17f942c5bafd4187dd1e25c.tar.gz rust-term-25cbec9695b290d0d17f942c5bafd4187dd1e25c.zip |
also, print and println are now in the prelude
Diffstat (limited to 'src')
-rw-r--r-- | src/term.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/term.rs b/src/term.rs index 70d5e1c..575be96 100644 --- a/src/term.rs +++ b/src/term.rs @@ -105,7 +105,7 @@ impl Writer { } fn flush (&mut self) { - io::print(self.buf); + print(self.buf); io::stdout().flush(); self.buf = ~""; } @@ -114,9 +114,9 @@ impl Writer { impl Drop for Writer { fn finalize (&self) { if self.cleanup { - io::print(escape("rmcup")); - io::print(escape("sgr0")); - io::print(escape("cnorm")); + print(escape("rmcup")); + print(escape("sgr0")); + print(escape("cnorm")); } } } @@ -217,7 +217,7 @@ impl Reader { impl Drop for Reader { fn finalize (&self) { if self.cleanup { - io::print(escape("rmkx")); + print(escape("rmkx")); } } } |