diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-26 17:47:23 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-26 17:47:23 -0400 |
commit | 5b7a45edf20d70a19c6b8d3706d8e542e1bcf30d (patch) | |
tree | b25177a0790652cbdb05133f2f41868a0324efef | |
parent | 2f9aab59acbbfc177a924afe7601b9021a4b1399 (diff) | |
download | cmd2-git-5b7a45edf20d70a19c6b8d3706d8e542e1bcf30d.tar.gz |
More replacing of 'colors' with 'allow_ansi'
-rw-r--r-- | docs/settingchanges.rst | 4 | ||||
-rw-r--r-- | tests/scripts/postcmds.txt | 2 | ||||
-rw-r--r-- | tests/scripts/precmds.txt | 2 | ||||
-rw-r--r-- | tests/test_cmd2.py | 8 |
4 files changed, 8 insertions, 8 deletions
diff --git a/docs/settingchanges.rst b/docs/settingchanges.rst index 0e4feac1..81f025a7 100644 --- a/docs/settingchanges.rst +++ b/docs/settingchanges.rst @@ -174,7 +174,7 @@ comments, is viewable from within a running application with:: (Cmd) set --long - colors: Terminal # Allow colorized output + allow_ansi: Terminal # Allow ANSI escape sequences in output (valid values: Terminal, Always, Never) continuation_prompt: > # On 2nd+ line of input debug: False # Show full error stack on error echo: False # Echo command issued into output @@ -187,5 +187,5 @@ with:: Any of these user-settable parameters can be set while running your app with the ``set`` command like so:: - set colors Never + set allow_ansi Never diff --git a/tests/scripts/postcmds.txt b/tests/scripts/postcmds.txt index dea8f265..74f1e226 100644 --- a/tests/scripts/postcmds.txt +++ b/tests/scripts/postcmds.txt @@ -1 +1 @@ -set colors Never +set allow_ansi Never diff --git a/tests/scripts/precmds.txt b/tests/scripts/precmds.txt index 0ae7eae8..0167aa22 100644 --- a/tests/scripts/precmds.txt +++ b/tests/scripts/precmds.txt @@ -1 +1 @@ -set colors Always +set allow_ansi Always diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 1ddc6a3e..5eeb442e 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -354,11 +354,11 @@ def test_run_script_nested_run_scripts(base_app, request): expected = """ %s _relative_run_script precmds.txt -set colors Always +set allow_ansi Always help shortcuts _relative_run_script postcmds.txt -set colors Never""" % initial_run +set allow_ansi Never""" % initial_run out, err = run_cmd(base_app, 'history -s') assert out == normalize(expected) @@ -373,11 +373,11 @@ def test_runcmds_plus_hooks(base_app, request): 'run_script ' + postfilepath]) expected = """ run_script %s -set colors Always +set allow_ansi Always help shortcuts run_script %s -set colors Never""" % (prefilepath, postfilepath) +set allow_ansi Never""" % (prefilepath, postfilepath) out, err = run_cmd(base_app, 'history -s') assert out == normalize(expected) |