Skip to content
Myr

Ignore KeyboardInterrupt while writing to pager.

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

authored by Amjith Ramanujam · committed by Markus Unterwaditzer · parent e71f0a0 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:click/_termui_impl.py+1 added-1 removed
304 unmodified lines
305 encoding = get_best_encoding(c.stdin)306 try:307 c.stdin.write(text.encode(encoding, 'replace'))308 c.stdin.close()309 except IOError:309 except (IOError, KeyboardInterrupt):310 pass311312 # Less doesn't respect ^C, but catches it for its own UI purposes (aborting313 # search or other commands inside less).
214 unmodified lines