diff options
-rw-r--r-- | CHANGELOG.md | 5 | ||||
-rw-r--r-- | cmd2/cmd2.py | 4 |
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: |