Skip to content
Myr

Added notes on keyboard interrupts

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 ae0572b · Browse files · 1 file+7 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

1 file+7 added−0 removed

  • other:+7 added−0 removed

1 file+7 added−0 removed

modified:docs/utils.rst+7 added
122 unmodified lines
123 click.echo('Abort!')124 else:125 click.echo('Invalid input :(')126127Note that this reads raw input which means that things like arrow keys128will show up in the platform's native escape format. The only characters129translated are ``^C`` and ``^D`` which are converted into keyboard130interrupt and end of file exceptions. This is done because otherwise it's131too easy to forget about that and to create scripts that cannot be132properly exited.133134135Launching Editors136-----------------137138.. versionadded:: 2.0
160 unmodified lines