1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-04-24 17:12:16 +02:00

termcolor: improve "intense" docs

Fixes #797
This commit is contained in:
Balaji Sivaraman 2018-02-20 17:41:25 +05:30 committed by Andrew Gallant
parent d57fc58081
commit c78ab9e669

View File

@ -1269,9 +1269,23 @@ impl ColorSpec {
} }
/// Get whether this is intense or not. /// Get whether this is intense or not.
///
/// On Unix-like systems, this will output the ANSI escape sequence
/// that will print a high-intensity version of the color
/// specified.
///
/// On Windows systems, this will output the ANSI escape sequence
/// that will print a brighter version of the color specified.
pub fn intense(&self) -> bool { self.intense } pub fn intense(&self) -> bool { self.intense }
/// Set whether the text is intense or not. /// Set whether the text is intense or not.
///
/// On Unix-like systems, this will output the ANSI escape sequence
/// that will print a high-intensity version of the color
/// specified.
///
/// On Windows systems, this will output the ANSI escape sequence
/// that will print a brighter version of the color specified.
pub fn set_intense(&mut self, yes: bool) -> &mut ColorSpec { pub fn set_intense(&mut self, yes: bool) -> &mut ColorSpec {
self.intense = yes; self.intense = yes;
self self