Skip to content
Myr

Added style and unstyle to docs.

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 f516eee · Browse files · 2 files+8 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+8 added−0 removed

  • other:+8 added−0 removed

2 files+8 added−0 removed

modified:click/termui.py+4 added
297 unmodified lines
298 * ``cyan``299 * ``white`` (might be light gray)300 * ``reset`` (reset the color code only)301302 .. versionadded:: 2.0303304 :param text: the string to style with ansi codes.305 :param fg: if provided this will become the foreground color.306 :param bg: if provided this will become the background color.307 :param bold: if provided this will enable or disable bold mode.
38 unmodified lines
346 """Removes ANSI styling information from a string. Usually it's not347 necessary to use this function as click's echo function will348 automatically remove styling if necessary.349350 .. versionadded:: 2.0351352 :param text: the text to remove style information from.353 """354 return strip_ansi(text)
modified:docs/api.rst+4 added
44 unmodified lines
45.. autofunction:: progressbar4647.. autofunction:: clear4849.. autofunction:: style5051.. autofunction:: unstyle5253.. autofunction:: format_filename5455.. autofunction:: get_terminal_size56
101 unmodified lines