no need for templating
This commit is contained in:
parent
0758c07ab7
commit
8760faca15
|
@ -211,10 +211,10 @@ impl<W: Write> DetectColors for W {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Detect a color using OSC 4.
|
/// Detect a color using OSC 4.
|
||||||
fn detect_color<W: Write>(stdout: &mut W,
|
fn detect_color(stdout: &mut Write,
|
||||||
stdin: &mut Read,
|
stdin: &mut Read,
|
||||||
color: u16)
|
color: u16)
|
||||||
-> io::Result<bool> {
|
-> io::Result<bool> {
|
||||||
// Is the color available?
|
// Is the color available?
|
||||||
// Use `ESC ] 4 ; color ; ? BEL`.
|
// Use `ESC ] 4 ; color ; ? BEL`.
|
||||||
write!(stdout, "\x1B]4;{};?\x07", color)?;
|
write!(stdout, "\x1B]4;{};?\x07", color)?;
|
||||||
|
|
Loading…
Reference in New Issue