File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ term.clear_line()?;
39
39
40
40
## Colors and Styles
41
41
42
- ` console ` uses ` clicolors-control ` to control colors. It also
43
- provides higher level wrappers for styling text and other things
44
- that can be displayed with the ` style ` function and utility types.
42
+ ` console ` automaticaly detects when to use colors based on the tty flag . It also
43
+ provides higher level wrappers for styling text and other things that can be
44
+ displayed with the ` style ` function and utility types.
45
45
46
46
Example usage:
47
47
Original file line number Diff line number Diff line change 33
33
//!
34
34
//! # Colors and Styles
35
35
//!
36
- //! `console` uses `clicolors-control` to control colors. It also
37
- //! provides higher level wrappers for styling text and other things
38
- //! that can be displayed with the `style` function and utility types.
36
+ //! `console` automaticaly detects when to use colors based on the tty flag . It also
37
+ //! provides higher level wrappers for styling text and other things that can be
38
+ //! displayed with the `style` function and utility types.
39
39
//!
40
40
//! Example usage:
41
41
//!
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ impl Style {
245
245
246
246
/// Forces styling on or off.
247
247
///
248
- /// This overrides the detection from `clicolors-control` .
248
+ /// This overrides the automatic detection .
249
249
#[ inline]
250
250
pub fn force_styling ( mut self , value : bool ) -> Style {
251
251
self . force = Some ( value) ;
@@ -435,7 +435,7 @@ pub struct StyledObject<D> {
435
435
impl < D > StyledObject < D > {
436
436
/// Forces styling on or off.
437
437
///
438
- /// This overrides the detection from `clicolors-control` .
438
+ /// This overrides the automatic detection .
439
439
#[ inline]
440
440
pub fn force_styling ( mut self , value : bool ) -> StyledObject < D > {
441
441
self . style = self . style . force_styling ( value) ;
You can’t perform that action at this time.
0 commit comments