mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-04-24 17:12:16 +02:00
parent
d57fc58081
commit
c78ab9e669
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user