summaryrefslogtreecommitdiffstats
path: root/src/paint.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-04-30 14:43:01 -0400
committerDan Davison <dandavison7@gmail.com>2020-04-30 14:43:01 -0400
commit3e46301b48aba1ca9c2e4a9228cf591969b20849 (patch)
tree43ee57111dfd744001192bfc31c25529dc2b71c9 /src/paint.rs
parent692fb19037fff808d75477bbc3fb0bf933b4dc08 (diff)
Emit ANSI reset at end of line, after ANSI fill-right instruction
Diffstat (limited to 'src/paint.rs')
-rw-r--r--src/paint.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/paint.rs b/src/paint.rs
index dc85a8ba..ef88d7d5 100644
--- a/src/paint.rs
+++ b/src/paint.rs
@@ -145,6 +145,7 @@ impl<'a> Painter<'a> {
}
output_buffer.push_str(&line);
output_buffer.push_str(ANSI_CSI_ERASE_IN_LINE);
+ output_buffer.push_str(ANSI_SGR_RESET);
} else {
output_buffer.push_str(&line);
}