Skip to content

Commit

Permalink
termcolor: improve "intense" docs
Browse files Browse the repository at this point in the history
Fixes #797
  • Loading branch information
balajisivaraman authored and BurntSushi committed Feb 20, 2018
1 parent d57fc58 commit c78ab9e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions termcolor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1269,9 +1269,23 @@ impl ColorSpec {
}

/// 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 }

/// 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 {
self.intense = yes;
self
Expand Down

0 comments on commit c78ab9e

Please sign in to comment.