summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-11-16 20:23:56 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-11-16 20:23:56 -0500
commit42cc988127aace0b07baae4f2c52befb90078f93 (patch)
tree4d8801c5951c53a0d5043256892025b316178ac5
parent835e7dc64b485b19f57ff5650eb5dfe8a8a8a0f8 (diff)
downloadcmd2-git-42cc988127aace0b07baae4f2c52befb90078f93.tar.gz
Updated comments and change log
-rw-r--r--CHANGELOG.md5
-rw-r--r--cmd2/cmd2.py4
2 files changed, 7 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8c25bc9b..d71a2d0a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 0.9.21 (TBD, 2019)
+* Enhancements
+ * Added `read_input()` function that is used to read from stdin. Unlike the Python built-in `input()`, it also has
+ an argument to disable tab completion while input is being entered.
+
## 0.9.20 (November 12, 2019)
* Bug Fixes
* Fixed bug where setting `use_ipython` to False removed ipy command from the entire `cmd2.Cmd` class instead of
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index faa96924..ea3d32d2 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -2007,7 +2007,7 @@ class Cmd(cmd.Cmd):
orig_completer = None
def disable_completion():
- """Turn off completion during the select input line"""
+ """Turn off completion while entering input"""
nonlocal orig_completer
nonlocal completion_disabled
@@ -2017,7 +2017,7 @@ class Cmd(cmd.Cmd):
completion_disabled = True
def enable_completion():
- """Restore tab completion when select is done reading input"""
+ """Restore tab completion when finished entering input"""
nonlocal completion_disabled
if self._completion_supported() and completion_disabled: