Skip to content
Myr

Cross link for ansi colors.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 6e31b1c · Browse files · 2 files+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+6 added−0 removed

  • other:+6 added−0 removed

2 files+6 added−0 removed

modified:docs/quickstart.rst+4 added
84 unmodified lines
85What this means is that the :func:`echo` function applies some error86correction in case the terminal is misconfigured instead of dying with an87:exc:`UnicodeError`.8889As an added benefit, starting with click 2.0 the echo function also90supports portable ANSI coloring if colorama is installed. See91:ref:`ansi-colors` for more information.9293If you don't need this, you can also use the `print()` construct /94function.9596Nesting Commands
65 unmodified lines
modified:docs/utils.rst+2 added
29 unmodified lines
3031 click.echo(b'\xe2\x98\x83', nl=False)323334.. _ansi-colors:3536ANSI Colors37-----------3839.. versionadded:: 2.0
145 unmodified lines