summaryrefslogtreecommitdiff
path: root/cmd2/rl_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/rl_utils.py')
-rw-r--r--cmd2/rl_utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd2/rl_utils.py b/cmd2/rl_utils.py
index 8a92d18e..9a23cbcd 100644
--- a/cmd2/rl_utils.py
+++ b/cmd2/rl_utils.py
@@ -125,8 +125,7 @@ elif 'gnureadline' in sys.modules or 'readline' in sys.modules:
"which readline is not loaded dynamically from a shared library file.")
else:
rl_type = RlType.GNU
- if sys.stdout.isatty():
- vt100_support = True
+ vt100_support = sys.stdout.isatty()
# Check if readline was loaded
if rl_type == RlType.NONE: # pragma: no cover