MCPcopy Create free account
hub / github.com/ipython/ipython / _allow_CTRL_C_posix

Function _allow_CTRL_C_posix

IPython/lib/inputhook.py:73–75  ·  view source on GitHub ↗

Take CTRL+C into account (SIGINT).

()

Source from the content-addressed store, hash-verified

71 signal.signal(signal.SIGINT, signal.SIG_IGN)
72
73def _allow_CTRL_C_posix():
74 """Take CTRL+C into account (SIGINT)."""
75 signal.signal(signal.SIGINT, signal.default_int_handler)
76
77def _ignore_CTRL_C_other():
78 """Ignore CTRL+C (not implemented)."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected