summaryrefslogtreecommitdiff
path: root/cmd2/rl_utils.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-12-06 13:40:58 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-12-06 13:40:58 -0500
commit5b9281f6dfb55d436e6a19ae41af5a8590fbaed7 (patch)
tree6b4d269801df6fb2634af3003fe28a29b010008f /cmd2/rl_utils.py
parent23970dfdca765992157b8089f3a34f7fd4fa4f10 (diff)
parentea182bbea386288b1acfbc35c99243a457ff1036 (diff)
downloadcmd2-git-5b9281f6dfb55d436e6a19ae41af5a8590fbaed7.tar.gz
Merge branch 'master' into history
Diffstat (limited to 'cmd2/rl_utils.py')
-rw-r--r--cmd2/rl_utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd2/rl_utils.py b/cmd2/rl_utils.py
index 0819232d..fdddca0b 100644
--- a/cmd2/rl_utils.py
+++ b/cmd2/rl_utils.py
@@ -71,8 +71,9 @@ if 'pyreadline' in sys.modules:
# Enable VT100 sequences for stdout and stderr
STD_OUT_HANDLE = -11
STD_ERROR_HANDLE = -12
- vt100_support = (enable_win_vt100(readline.rl.console.GetStdHandle(STD_OUT_HANDLE)) and
- enable_win_vt100(readline.rl.console.GetStdHandle(STD_ERROR_HANDLE)))
+ vt100_stdout_support = enable_win_vt100(readline.rl.console.GetStdHandle(STD_OUT_HANDLE))
+ vt100_stderr_support = enable_win_vt100(readline.rl.console.GetStdHandle(STD_ERROR_HANDLE))
+ vt100_support = vt100_stdout_support and vt100_stderr_support
############################################################################################################
# pyreadline is incomplete in terms of the Python readline API. Add the missing functions we need.