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

Function _input_callback

IPython/terminal/pt_inputhooks/osx.py:103–110  ·  view source on GitHub ↗

Callback to fire when there's input to be read

(fdref, flags, info)

Source from the content-addressed store, hash-verified

101_triggered = Event()
102
103def _input_callback(fdref, flags, info):
104 """Callback to fire when there's input to be read"""
105 _triggered.set()
106 CFFileDescriptorInvalidate(fdref)
107 CFRelease(fdref)
108 NSApp = _NSApp()
109 msg(NSApp, n('stop:'), NSApp)
110 _wake(NSApp)
111
112_c_callback_func_type = ctypes.CFUNCTYPE(None, void_p, void_p, void_p)
113_c_input_callback = _c_callback_func_type(_input_callback)

Callers

nothing calls this directly

Calls 4

_NSAppFunction · 0.85
nFunction · 0.85
_wakeFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected