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
This commit is contained in:
kennytm
2018-01-30 03:14:55 +08:00
committed by Andrew Gallant
parent ed9150c9b4
commit 8514d4fbb4
2 changed files with 5 additions and 5 deletions

View File

@@ -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")
}
}