diff --git a/src/color.rs b/src/color.rs index 9d5daf52f56b1a86ec392179ab1158801ec3bd3d..3c8063fb3574df316333d893f2ae24aeb3c4a325 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 7a95c3af3fc006a12bd9a9adc285eea8b5f0afbf..5410baf0877be231a14505bef02c8ef0a3d37aa9 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.