aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.rs')
-rw-r--r--src/term.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/term.rs b/src/term.rs
index 374105a..908d601 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -76,6 +76,10 @@ impl Term {
self.w.bg_color(color);
}
+ pub fn reset_color (&mut self) {
+ self.w.reset_color();
+ }
+
pub fn cursor (&mut self, enabled: bool) {
self.w.cursor(enabled);
}
@@ -129,6 +133,10 @@ impl Writer {
self.buf.push_str(escape1("setab", color as int));
}
+ fn reset_color (&mut self) {
+ self.buf.push_str(escape("op"));
+ }
+
fn cursor (&mut self, enabled: bool) {
if enabled {
self.buf.push_str(escape("civis"));