diff options
| author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-03-22 18:39:49 -0400 |
|---|---|---|
| committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-03-22 18:39:49 -0400 |
| commit | f293bbe71e357991fd6fa2b19785917008d8cec9 (patch) | |
| tree | 3f2fb2c487a577955784d7b270af69630b0de553 /cmd2.py | |
| parent | fb7171a36aae2191a8cf813279b9b8f2182e0756 (diff) | |
| download | cmd2-git-f293bbe71e357991fd6fa2b19785917008d8cec9.tar.gz | |
Letting readline know we updated the display
Diffstat (limited to 'cmd2.py')
| -rwxr-xr-x | cmd2.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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): """ |
