New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export more libreadline API functions #41788
Comments
The python readline.c is missing several of the API Also, export rl_delete_text, rl_message, -Bruce |
Logged In: YES Have these function always been available in readline (i.e. Also, please provide Doc/lib/libreadline.tex changes. If you cannot provide these things, please indicate so. |
Logged In: YES AFAIK, yes, they have always been available, at least in -Bruce |
Logged In: YES As incomplete work, we might have to reject it, unless |
Logged In: YES I got the OK to work on the docs. Here's the patch -Bruce |
Logged In: YES I've just broken this patch by changing the signature of the set_hook/ There seem to be some whitespace oddities (e.g. right at the start of the The docstrings should use the PyDoc_STRVAR macros. I'm not sure about some of the details of the py_callback stuff (although
None of this should be very hard to deal with, but I don't know when/if I'd |
Access to rl_reset_line_state (and possibly others in the Redisplay Example:
The input editing is still in reverse-i-search mode. Note: It may be desirable to stay in this mode and call raw_input() The documentation should explain how to resume after KeyboardInterrupt |
bpo-1744456 contains a different patch to implement readline callbacks. Suggest that anyone moving forward with this review both patches. |
Simon: See bpo-24266 about recovering after interrupting the search mode. Also, I think bpo-1744456 wraps a different part of the Readline API (rl_callback_ for non-blocking interface) to the patch here (rl_add_defun for adding a custom “key binding” or something). So the two patches could be considered independently. |
rl_forced_update_display() wrappers already proposed in bpo-23067 |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: