diff options
author | Dan Klein <danklei@cisco.com> | 2015-10-29 06:18:54 +0200 |
---|---|---|
committer | Dan Klein <danklei@cisco.com> | 2015-10-29 06:18:54 +0200 |
commit | d78150a66de591a77df2496e5de828d3232a931a (patch) | |
tree | ba1fd214aed36a691c25d267b71d8d8cc1203255 /scripts/automation/trex_control_plane/common | |
parent | 13c353b9e4f3f0177458c5bef729de31ec03135d (diff) |
Awesome working start/stop traffic console
Fixed more stability issues :)
Ready for merging.
Diffstat (limited to 'scripts/automation/trex_control_plane/common')
-rwxr-xr-x | scripts/automation/trex_control_plane/common/text_opts.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/automation/trex_control_plane/common/text_opts.py b/scripts/automation/trex_control_plane/common/text_opts.py index 4d1cb0fd..06c2c056 100755 --- a/scripts/automation/trex_control_plane/common/text_opts.py +++ b/scripts/automation/trex_control_plane/common/text_opts.py @@ -13,6 +13,8 @@ TEXT_CODES = {'bold': {'start': '\x1b[1m', 'end': '\x1b[39m'}, 'green': {'start': '\x1b[32m', 'end': '\x1b[39m'}, + 'yellow': {'start': '\x1b[33m', + 'end': '\x1b[39m'}, 'underline': {'start': '\x1b[4m', 'end': '\x1b[24m'}} @@ -40,6 +42,8 @@ def magenta(text): def green(text): return text_attribute(text, 'green') +def yellow(text): + return text_attribute(text, 'yellow') def underline(text): return text_attribute(text, 'underline') @@ -54,6 +58,7 @@ def text_attribute(text, attribute): FUNC_DICT = {'blue': blue, 'bold': bold, 'green': green, + 'yellow': yellow, 'cyan': cyan, 'magenta': magenta, 'underline': underline, |