Use LightRed instead of Red

master
Nick Krichevsky 2021-11-13 14:13:03 -05:00
parent d4b491f7b4
commit ca5e842caf
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix bug where broken pipes would color the shell. For instance, if the last line in some output patched, running
`hline <pat> myfile.txt |head` would color your terminal red. Oops!
- Made error message output a bit more human-friendly.
- Change highlight color to light red
## [0.1.0] - 2021-11-07
- Initial public release 🎉

View File

@ -5,7 +5,7 @@ use grep::searcher::{Searcher, Sink, SinkContext, SinkError, SinkMatch};
use std::fmt::Display;
use std::io;
use std::panic;
use termion::color;
use termion::color::{Fg, LightRed};
use thiserror::Error;
const PASSTHRU_PANIC_MSG: &str = "passthru is not enabled on the given searcher";
@ -89,7 +89,7 @@ impl<P: Printer> Sink for ContextPrintingSink<P> {
Self::validate_searcher(searcher);
let print_res = self.printer.colored_print(
color::Fg(color::Red),
Fg(LightRed),
std::str::from_utf8(sink_match.bytes()).unwrap(),
);