From d52e2a2426fc7f1ece6dad3e1716b0d2f01f27d5 Mon Sep 17 00:00:00 2001 From: ticki Date: Sat, 2 Jul 2016 15:59:51 +0200 Subject: [PATCH] Fix documentation for colors --- src/color.rs | 32 ++++++++++++++++---------------- src/control.rs | 4 ---- 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/src/color.rs b/src/color.rs index 9d5daf5..3c8063f 100644 --- a/src/color.rs +++ b/src/color.rs @@ -19,22 +19,22 @@ macro_rules! derive_color { } -derive_color!("", Black, 0x0); -derive_color!("", Red, 0x1); -derive_color!("", Green, 0x2); -derive_color!("", Yellow, 0x3); -derive_color!("", Blue, 0x4); -derive_color!("", Magenta, 0x5); -derive_color!("", Cyan, 0x6); -derive_color!("", White, 0x7); -derive_color!("", LightBlack, 0x8); -derive_color!("", LightRed, 0x9); -derive_color!("", LightGreen, 0xA); -derive_color!("", LightYellow, 0xB); -derive_color!("", LightBlue, 0xC); -derive_color!("", LightMagenta, 0xD); -derive_color!("", LightCyan, 0xE); -derive_color!("", LightWhite, 0xF); +derive_color!("Black.", Black, 0x0); +derive_color!("Red.", Red, 0x1); +derive_color!("Green.", Green, 0x2); +derive_color!("Yellow.", Yellow, 0x3); +derive_color!("Blue.", Blue, 0x4); +derive_color!("Magenta.", Magenta, 0x5); +derive_color!("Cyan.", Cyan, 0x6); +derive_color!("White.", White, 0x7); +derive_color!("High-intensity light black.", LightBlack, 0x8); +derive_color!("High-intensity light red.", LightRed, 0x9); +derive_color!("High-intensity light green.", LightGreen, 0xA); +derive_color!("High-intensity light yellow.", LightYellow, 0xB); +derive_color!("High-intensity light blue.", LightBlue, 0xC); +derive_color!("High-intensity light magenta.", LightMagenta, 0xD); +derive_color!("High-intensity light cyan.", LightCyan, 0xE); +derive_color!("High-intensity light white.", LightWhite, 0xF); /// 216-color (r, g, b ≤ 5) RGB. pub fn rgb(r: u8, g: u8, b: u8) -> AnsiValue { diff --git a/src/control.rs b/src/control.rs index 7a95c3a..5410baf 100644 --- a/src/control.rs +++ b/src/control.rs @@ -79,10 +79,6 @@ pub trait TermWrite { } } - // TODO - // fn mode - - /// Reset the rendition mode. /// /// This will reset both the current style and color.