File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ term.clear_line()?;
3939
4040## Colors and Styles
4141
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.
4545
4646Example usage:
4747
Original file line number Diff line number Diff line change 3333//!
3434//! # Colors and Styles
3535//!
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.
3939//!
4040//! Example usage:
4141//!
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ impl Style {
245245
246246 /// Forces styling on or off.
247247 ///
248- /// This overrides the detection from `clicolors-control` .
248+ /// This overrides the automatic detection .
249249 #[ inline]
250250 pub fn force_styling ( mut self , value : bool ) -> Style {
251251 self . force = Some ( value) ;
@@ -435,7 +435,7 @@ pub struct StyledObject<D> {
435435impl < D > StyledObject < D > {
436436 /// Forces styling on or off.
437437 ///
438- /// This overrides the detection from `clicolors-control` .
438+ /// This overrides the automatic detection .
439439 #[ inline]
440440 pub fn force_styling ( mut self , value : bool ) -> StyledObject < D > {
441441 self . style = self . style . force_styling ( value) ;
You can’t perform that action at this time.
0 commit comments