summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-22 18:39:49 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-22 18:39:49 -0400
commitf293bbe71e357991fd6fa2b19785917008d8cec9 (patch)
tree3f2fb2c487a577955784d7b270af69630b0de553 /cmd2.py
parentfb7171a36aae2191a8cf813279b9b8f2182e0756 (diff)
downloadcmd2-git-f293bbe71e357991fd6fa2b19785917008d8cec9.tar.gz
Letting readline know we updated the display
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd2.py b/cmd2.py
index eadd5a60..c2779707 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1667,6 +1667,10 @@ class Cmd(cmd.Cmd):
# have to use ctypes to do it since Python's readline API does not wrap the function
readline_lib.rl_forced_update_display()
+ # Let readline know that we manually did a redisplay
+ display_fixed = ctypes.c_int.in_dll(readline_lib, "rl_display_fixed")
+ display_fixed.value = 1
+
@staticmethod
def _display_matches_pyreadline(matches):
"""