no need for templating

This commit is contained in:
IGI-111 2017-03-13 11:49:24 +01:00
parent 0758c07ab7
commit 8760faca15
1 changed files with 4 additions and 4 deletions

View File

@ -211,10 +211,10 @@ impl<W: Write> DetectColors for W {
}
/// Detect a color using OSC 4.
fn detect_color<W: Write>(stdout: &mut W,
stdin: &mut Read,
color: u16)
-> io::Result<bool> {
fn detect_color(stdout: &mut Write,
stdin: &mut Read,
color: u16)
-> io::Result<bool> {
// Is the color available?
// Use `ESC ] 4 ; color ; ? BEL`.
write!(stdout, "\x1B]4;{};?\x07", color)?;