diff options
author | Phillip J. Eby <pje@telecommunity.com> | 2004-05-04 19:20:22 (GMT) |
---|---|---|
committer | Phillip J. Eby <pje@telecommunity.com> | 2004-05-04 19:20:22 (GMT) |
commit | 5068c873e6fc1d90218199b66ef821017b0c659d (patch) | |
tree | 9c4952574d38c95b30f7957a36932e7e1523aa77 /Doc | |
parent | 843c734ddda3e317eee97dfdd32ff15ceede22fc (diff) | |
download | cpython-5068c873e6fc1d90218199b66ef821017b0c659d.zip cpython-5068c873e6fc1d90218199b66ef821017b0c659d.tar.gz cpython-5068c873e6fc1d90218199b66ef821017b0c659d.tar.bz2 |
Document readline module functions added in Python 2.3. See:
http://mail.python.org/pipermail/python-dev/2003-September/037922.html
for background. It appears I forgot to ever submit a bug report or patch.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libreadline.tex | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/lib/libreadline.tex b/Doc/lib/libreadline.tex index 17b48c5..24dd2a3 100644 --- a/Doc/lib/libreadline.tex +++ b/Doc/lib/libreadline.tex @@ -60,6 +60,22 @@ history file when saving. Negative values imply unlimited history file size. \end{funcdesc} +\begin{funcdesc}{get_current_history_length}{} +Return the number of lines currently in the history. (This is different +from \function{get_history_length()}, which returns the maximum number of +lines that will be written to a history file.) \versionadded{2.3} +\end{funcdesc} + +\begin{funcdesc}{get_history_item}{index} +Return the current contents of history item at \var{index}. +\versionadded{2.3} +\end{funcdesc} + +\begin{funcdesc}{redisplay}{} +Change what's displayed on the screen to reflect the current contents +of the line buffer. \versionadded{2.3} +\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 |