Commit 8760faca authored by IGI-111's avatar IGI-111

no need for templating

parent 0758c07a
......@@ -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)?;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment