Skip to content
Myr

Merge pull request #1010 from rpgraham84/master

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

Fixes documentation issue #334

authored by Dan Sully · committed by GitHub · parents a49c207, d24a910 · Browse files · 2 files+5 added−2 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+5 added−2 removed

  • other:+5 added−2 removed

2 files+5 added−2 removed

modified:docs/quickstart.rst+3 added-1 removed
172 unmodified lines
173174As an added benefit, starting with Click 2.0, the echo function also175has good support for ANSI colors. It will automatically strip ANSI codes176if the output stream is a file and if colorama is supported, ANSI colors177will also work on Windows. See :ref:`ansi-colors` for more information.177will also work on Windows. Note that in Python 2, the :func:`echo` function178does not parse color code information from bytearrays. See :ref:`ansi-colors`179for more information.180181If you don't need this, you can also use the `print()` construct /182function.183
93 unmodified lines
modified:docs/utils.rst+2 added-1 removed
59 unmodified lines
6061Starting with Click 2.0, the :func:`echo` function gained extra62functionality to deal with ANSI colors and styles. Note that on Windows,63this functionality is only available if `colorama`_ is installed. If it64is installed, then ANSI codes are intelligently handled.64is installed, then ANSI codes are intelligently handled. Note that in Python652, the echo function doesn't parse color code information from bytearrays.6667Primarily this means that:6869- Click's :func:`echo` function will automatically strip ANSI color codes
341 unmodified lines