diff --git a/src/color.rs b/src/color.rs index 26c9fd2..1cdf32c 100644 --- a/src/color.rs +++ b/src/color.rs @@ -211,10 +211,10 @@ impl DetectColors for W { } /// Detect a color using OSC 4. -fn detect_color(stdout: &mut W, - stdin: &mut Read, - color: u16) - -> io::Result { +fn detect_color(stdout: &mut Write, + stdin: &mut Read, + color: u16) + -> io::Result { // Is the color available? // Use `ESC ] 4 ; color ; ? BEL`. write!(stdout, "\x1B]4;{};?\x07", color)?;