summaryrefslogtreecommitdiff
path: root/cmd2/rl_utils.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-05-07 21:09:40 -0600
committerkotfu <kotfu@kotfu.net>2018-05-07 21:09:40 -0600
commita4962abeda0ebf5815dafec99a1bd7bd1cdb8a4e (patch)
tree02ebd8a9c21490117a3ad81e7ed2438bea94f17f /cmd2/rl_utils.py
parentf5f0c90aa44ec658b33da422c4f0dc1cea2e6b98 (diff)
parent5e6a929613e1a2ff0542109913463c4264fbd11c (diff)
downloadcmd2-git-a4962abeda0ebf5815dafec99a1bd7bd1cdb8a4e.tar.gz
Merge branch 'master' into ignore_identchars
Diffstat (limited to 'cmd2/rl_utils.py')
-rw-r--r--cmd2/rl_utils.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/cmd2/rl_utils.py b/cmd2/rl_utils.py
index 465fcaea..8ef65d28 100644
--- a/cmd2/rl_utils.py
+++ b/cmd2/rl_utils.py
@@ -34,11 +34,13 @@ if 'pyreadline' in sys.modules:
rl_type = RlType.PYREADLINE
elif 'gnureadline' in sys.modules or 'readline' in sys.modules:
- rl_type = RlType.GNU
+ # We don't support libedit
+ if 'libedit' not in readline.__doc__:
+ rl_type = RlType.GNU
- # Load the readline lib so we can access members of it
- import ctypes
- readline_lib = ctypes.CDLL(readline.__file__)
+ # Load the readline lib so we can access members of it
+ import ctypes
+ readline_lib = ctypes.CDLL(readline.__file__)
def rl_force_redisplay() -> None: