summaryrefslogtreecommitdiffstats
path: root/termcolor
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-01-30 03:14:55 +0800
committerAndrew Gallant <jamslam@gmail.com>2018-01-29 14:14:55 -0500
commit8514d4fbb45265c263c982d5107216eefb2017dc (patch)
tree606fedf1b7f6f4747644d98a0cc2128b829ea631 /termcolor
parented9150c9b460115fffce151f5119a1e0f94af575 (diff)
termcolor: tweak reset escape
Write `Ansi::reset()` using `\x1b[0m` instead of `\x1b[m`. This works around an AppVeyor bug: https://github.com/appveyor/ci/issues/1824
Diffstat (limited to 'termcolor')
-rw-r--r--termcolor/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/termcolor/src/lib.rs b/termcolor/src/lib.rs
index bcb534a1..94cc0bfe 100644
--- a/termcolor/src/lib.rs
+++ b/termcolor/src/lib.rs
@@ -973,7 +973,7 @@ impl<W: io::Write> WriteColor for Ansi<W> {
}
fn reset(&mut self) -> io::Result<()> {
- self.write_str("\x1B[m")
+ self.write_str("\x1B[0m")
}
}