Skip to content
Myr

Moved pager support in the 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 ae85be4 · Browse files · 2 files+17 added−17 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+17 added−17 removed

  • other:+17 added−17 removed

2 files+17 added−17 removed

modified:docs/advanced.rst-17 removed
99 unmodified lines
100.. click:run::101102 invoke(cli, prog_name='cli', args=['dist'])103104Showing Long Texts105------------------104107In some situations you might want to show long texts on the terminal and108let a user scroll through it. This can be achieved by using the109:func:`echo_via_pager` function which works similar to the :func:`echo`110function but always writes to stdout and, if possible, through a pager.111112Example:113114.. click:example::115116 @click.command()117 def less():118 click.echo_via_pager('\n'.join('Line %d' % idx119 for idx in range(200)))120121105.. _callback-evaluation-order:106107Callback Evaluation Order108-------------------------
54 unmodified lines
modified:docs/utils.rst+17 added
75 unmodified lines
767778.. _colorama: https://pypi.python.org/pypi/colorama7980Pager Support81-------------8283In some situations you might want to show long texts on the terminal and84let a user scroll through it. This can be achieved by using the85:func:`echo_via_pager` function which works similar to the :func:`echo`86function but always writes to stdout and, if possible, through a pager.8788Example:8990.. click:example::9192 @click.command()93 def less():94 click.echo_via_pager('\n'.join('Line %d' % idx95 for idx in range(200)))969798Screen Clearing99---------------100101.. versionadded:: 2.0
214 unmodified lines