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
At the moment there is no way of getting the current pre_input_hook out
of the readline module, so applications cannot set_pre_input_hook
without possibly over-writing users settings (or other parts of the
applications settings) I have attached a patch that implements this
functionality.
It is probably not very useful in many situations, but I am now using it
to maintain my normal custom auto-indenting python prompt in a library
that allows me to edit arbitrary strings using readline. A better way to
implement this might be to
I'm working on applying this patch cleanly and writing a test for this.
However, it seems I'm unable to import readline in compiled version of Python. I'm trying to provide a path to the installation of readline in my system using LDFLAGS, and then reconfiguring and recompiling, but seems like it didn't work.
Activity
ConradIrwin commentedon Dec 3, 2008
At the moment there is no way of getting the current pre_input_hook out
of the readline module, so applications cannot set_pre_input_hook
without possibly over-writing users settings (or other parts of the
applications settings) I have attached a patch that implements this
functionality.
It is probably not very useful in many situations, but I am now using it
to maintain my normal custom auto-indenting python prompt in a library
that allows me to edit arbitrary strings using readline. A better way to
implement this might be to
ConradIrwin commentedon Dec 3, 2008
...wrap the current readline in a pure python module
CuriousLearner commentedon Feb 23, 2019
I'm working on applying this patch cleanly and writing a test for this.
However, it seems I'm unable to import
readlinein compiled version of Python. I'm trying to provide a path to the installation of readline in my system using LDFLAGS, and then reconfiguring and recompiling, but seems like it didn't work.Can someone provide me a pointer here, please?
pythongh-48752: Add readline.get_pre_input_hook() function
pythongh-48752: Add readline.get_pre_input_hook() function
pythongh-48752: Add readline.get_pre_input_hook() function
pythongh-48752: Add readline.get_pre_input_hook() function
pythongh-48752: Add readline.get_pre_input_hook() function
gh-48752: Add readline.get_pre_input_hook() function (#141586)
pythongh-48752: Add readline.get_pre_input_hook() function (python#14…