You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose non-blocking callbackAPI in readline module #45135
Patch contains changes to readline.c and libreadline.tex,
I did not find a unit-test for readline so there are no tests.
One of the readline functions (callback_read_char) can potentially call abort(). This can happen on the interactive prompt, but I think that this is not a problem, since using this API from the interactive prompt (which itself uses it) does not make sense anyway.
changed the title [-]Patch for feat. 713877 Expose callbackAPI in readline module[/-][+]Patch for feat. 1713877 Expose callbackAPI in readline module[/+]on Apr 6, 2009
changed the title [-]Patch for feat. 713877 Expose callbackAPI in readline module[/-][+]Patch for feat. 1713877 Expose callbackAPI in readline module[/+]on Apr 6, 2009
This appears to be a duplicate of bpo-1175004; both supply patches to implement readline callbacks. Suggest that anyone moving forward with this review both patches.
changed the title [-]Patch for feat. 1713877 Expose callbackAPI in readline module[/-][+]Expose non-blocking callbackAPI in readline module[/+]on Aug 2, 2015
changed the title [-]Patch for feat. 1713877 Expose callbackAPI in readline module[/-][+]Expose non-blocking callbackAPI in readline module[/+]on Aug 2, 2015
Activity
strank commentedon Jun 27, 2007
Expose the callback API of GNU readline.
Patch contains changes to readline.c and libreadline.tex,
I did not find a unit-test for readline so there are no tests.
One of the readline functions (callback_read_char) can potentially call abort(). This can happen on the interactive prompt, but I think that this is not a problem, since using this API from the interactive prompt (which itself uses it) does not make sense anyway.
cheers,
stefan
[-]Patch for feat. 713877 Expose callbackAPI in readline module[/-][+]Patch for feat. 1713877 Expose callbackAPI in readline module[/+][-]Patch for feat. 713877 Expose callbackAPI in readline module[/-][+]Patch for feat. 1713877 Expose callbackAPI in readline module[/+]BreamoreBoy commentedon Sep 17, 2010
Is there anyone who'd like to see this functionality exposed who could review this C code patch?
ned-deily commentedon Sep 17, 2010
This appears to be a duplicate of bpo-1175004; both supply patches to implement readline callbacks. Suggest that anyone moving forward with this review both patches.
tiran commentedon Nov 17, 2013
Closing as duplicate
vadmium commentedon Aug 2, 2015
I don’t think this is a duplicate. The patch here wraps the non-blocking “alternate interface” <https://cnswww.cns.cwru.edu/php/chet/readline/readline.html#SEC41\>: rl_callback_read_char() etc. The patch in bpo-1175004 wraps other APIs, including rl_add_defun() <https://cnswww.cns.cwru.edu/php/chet/readline/readline.html#SEC30\>. So if someone was interested in pushing this forward, perhaps it could be reopened.
[-]Patch for feat. 1713877 Expose callbackAPI in readline module[/-][+]Expose non-blocking callbackAPI in readline module[/+][-]Patch for feat. 1713877 Expose callbackAPI in readline module[/-][+]Expose non-blocking callbackAPI in readline module[/+]