This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author btimby
Recipients
Date 2007-03-28.21:52:03
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This patch allows for binding a key or keyseq to a custom function named custom. A custom handler can be registered and will be called by readline when the registered sequence input.

Example:

rl.py
--
import readline

def handler():
    print "need some help?"

readline.set_custom_hook(handler)
readline.parse_and_bind("\"?\": custom")

text = raw_input("type ? for help# ")
--
History
Date User Action Args
2007-08-23 15:57:47adminlinkissue1690201 messages
2007-08-23 15:57:47admincreate