summaryrefslogtreecommitdiff
path: root/examples/python_scripting.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-05-11 21:41:36 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-05-11 21:41:36 -0400
commit2bd17dbc34ce88a4cd5375dadb0406b891a1fdb6 (patch)
treee80135780402ed18a7c0c4a788782f9326169b3e /examples/python_scripting.py
parentecf5a11315fc0bcab575182820f8c06e348813d2 (diff)
downloadcmd2-git-2bd17dbc34ce88a4cd5375dadb0406b891a1fdb6.tar.gz
Added code to protect against GNU Readline bug
GNU Readline has a bug in calculating prompt length when ANSI escape codes are present in the prompt. It requires you to escape the escape codes to tell it where sections of invisible characters begin and end. So before calling input(), cmd2 now makes the prompt safe by escaping any ANSI escape codes present.
Diffstat (limited to 'examples/python_scripting.py')
0 files changed, 0 insertions, 0 deletions