summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-09-30 21:09:59 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-09-30 21:09:59 (GMT)
commit0daad598d0947395248f087c2aa347083f440e36 (patch)
treef102f904cd0d76c2ccf2304cc5b630640c2b3646 /Doc
parent16dc7f44b1116aab58897bc7e94cb972488206fc (diff)
downloadcpython-0daad598d0947395248f087c2aa347083f440e36.zip
cpython-0daad598d0947395248f087c2aa347083f440e36.tar.gz
cpython-0daad598d0947395248f087c2aa347083f440e36.tar.bz2
Patch #462122: add readline startup and pre_event hooks.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libreadline.tex16
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/lib/libreadline.tex b/Doc/lib/libreadline.tex
index a357144..7350845 100644
--- a/Doc/lib/libreadline.tex
+++ b/Doc/lib/libreadline.tex
@@ -54,6 +54,22 @@ history file when saving. Negative values imply unlimited history
file size.
\end{funcdesc}
+\begin{funcdesc}{set_startup_hook}{\optional{function}}
+Set or remove the startup_hook function. If \var{function} is specified,
+it will be used as the new startup_hook function; if omitted or
+\code{None}, any hook function already installed is removed. The
+startup_hook function is called with no arguments just
+before readline prints the first prompt.
+\end{funcdesc}
+
+\begin{funcdesc}{set_pre_input_hook}{\optional{function}}
+Set or remove the pre_input_hook function. If \var{function} is specified,
+it will be used as the new pre_input_hook function; if omitted or
+\code{None}, any hook function already installed is removed. The
+pre_input_hook function is called with no arguments after the first prompt
+has been printed and just before readline starts reading input characters.
+\end{funcdesc}
+
\begin{funcdesc}{set_completer}{\optional{function}}
Set or remove the completer function. If \var{function} is specified,
it will be used as the new completer function; if omitted or