Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:tubi-carrillo/colorparse
Browse files Browse the repository at this point in the history
  • Loading branch information
tubi-carrillo committed Mar 12, 2020
2 parents a78797d + 2265ed2 commit 86f109b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ A ``color code`` has two parts: the ``type`` (``;`` for *foreground* and ``:`` f
- To finish a color, can mean two things: initiating another color, or resetting them to normal (to what the terminal uses, which is normally not white). Resetting to normal, can be done in three major ways, using: ``;:`` to stop both background and foreground colors (or ``:;``, interchangable), ``;;`` to stop only the foreground colors and ``::`` to stop only the background colors::

$ colorparse ":b/;r/both foreground and background colors stop ;:/here"
$ colorparse ":b/;r/both foreground and background colors stop :;/here"
$ colorparse ":b/;r/both colors ;;/only the blue background"
$ colorparse ":b/;r/both colors ::/only the red foreground"
$ colorparse "/:b;r/both foreground and background colors stop/;: here"
$ colorparse "/:b;r/both foreground and background colors stop/:; here"
$ colorparse "/:b;r/both colors/;; only the blue background"
$ colorparse "/:b;r/both colors/:: only the red foreground"
- To escape ``color codes``, add a ``\`` (backslash) immediately before the ``type``::

Expand Down

0 comments on commit 86f109b

Please sign in to comment.