summaryrefslogtreecommitdiff
path: root/Doc/library/readline.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/readline.rst')
-rw-r--r--Doc/library/readline.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst
index 4d3c099ed2..54c54b461c 100644
--- a/Doc/library/readline.rst
+++ b/Doc/library/readline.rst
@@ -167,6 +167,20 @@ The following functions operate on a global history list:
This calls :c:func:`add_history` in the underlying library.
+.. function:: set_auto_history(enabled)
+
+ Enable or disable automatic calls to :c:func:`add_history` when reading
+ input via readline. The *enabled* argument should be a Boolean value
+ that when true, enables auto history, and that when false, disables
+ auto history.
+
+ .. versionadded:: 3.6
+
+ .. impl-detail::
+ Auto history is enabled by default, and changes to this do not persist
+ across multiple sessions.
+
+
Startup hooks
-------------