Skip to content

Commit 5b7a45e

Browse files
committed
More replacing of 'colors' with 'allow_ansi'
1 parent 2f9aab5 commit 5b7a45e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/settingchanges.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ comments, is viewable from within a running application
174174
with::
175175

176176
(Cmd) set --long
177-
colors: Terminal # Allow colorized output
177+
allow_ansi: Terminal # Allow ANSI escape sequences in output (valid values: Terminal, Always, Never)
178178
continuation_prompt: > # On 2nd+ line of input
179179
debug: False # Show full error stack on error
180180
echo: False # Echo command issued into output
@@ -187,5 +187,5 @@ with::
187187

188188
Any of these user-settable parameters can be set while running your app with the ``set`` command like so::
189189

190-
set colors Never
190+
set allow_ansi Never
191191

tests/scripts/postcmds.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
set colors Never
1+
set allow_ansi Never

tests/scripts/precmds.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
set colors Always
1+
set allow_ansi Always

tests/test_cmd2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,11 @@ def test_run_script_nested_run_scripts(base_app, request):
354354
expected = """
355355
%s
356356
_relative_run_script precmds.txt
357-
set colors Always
357+
set allow_ansi Always
358358
help
359359
shortcuts
360360
_relative_run_script postcmds.txt
361-
set colors Never""" % initial_run
361+
set allow_ansi Never""" % initial_run
362362
out, err = run_cmd(base_app, 'history -s')
363363
assert out == normalize(expected)
364364

@@ -373,11 +373,11 @@ def test_runcmds_plus_hooks(base_app, request):
373373
'run_script ' + postfilepath])
374374
expected = """
375375
run_script %s
376-
set colors Always
376+
set allow_ansi Always
377377
help
378378
shortcuts
379379
run_script %s
380-
set colors Never""" % (prefilepath, postfilepath)
380+
set allow_ansi Never""" % (prefilepath, postfilepath)
381381

382382
out, err = run_cmd(base_app, 'history -s')
383383
assert out == normalize(expected)

0 commit comments

Comments
 (0)