Skip to content

Commit

Permalink
Remove mention of not used clicolors-control
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jan 14, 2023
1 parent b577923 commit 357ca1d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -39,9 +39,9 @@ term.clear_line()?;

## Colors and Styles

`console` uses `clicolors-control` to control colors. It also
provides higher level wrappers for styling text and other things
that can be displayed with the `style` function and utility types.
`console` automaticaly detects when to use colors based on the tty flag. It also
provides higher level wrappers for styling text and other things that can be
displayed with the `style` function and utility types.

Example usage:

Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Expand Up @@ -33,9 +33,9 @@
//!
//! # Colors and Styles
//!
//! `console` uses `clicolors-control` to control colors. It also
//! provides higher level wrappers for styling text and other things
//! that can be displayed with the `style` function and utility types.
//! `console` automaticaly detects when to use colors based on the tty flag. It also
//! provides higher level wrappers for styling text and other things that can be
//! displayed with the `style` function and utility types.
//!
//! Example usage:
//!
Expand Down
4 changes: 2 additions & 2 deletions src/utils.rs
Expand Up @@ -245,7 +245,7 @@ impl Style {

/// Forces styling on or off.
///
/// This overrides the detection from `clicolors-control`.
/// This overrides the automatic detection.
#[inline]
pub fn force_styling(mut self, value: bool) -> Style {
self.force = Some(value);
Expand Down Expand Up @@ -435,7 +435,7 @@ pub struct StyledObject<D> {
impl<D> StyledObject<D> {
/// Forces styling on or off.
///
/// This overrides the detection from `clicolors-control`.
/// This overrides the automatic detection.
#[inline]
pub fn force_styling(mut self, value: bool) -> StyledObject<D> {
self.style = self.style.force_styling(value);
Expand Down

0 comments on commit 357ca1d

Please sign in to comment.