From 862ec9b81ef22c860d4fb9fa45f0531f1c238bcc Mon Sep 17 00:00:00 2001 From: imarom Date: Wed, 13 Jan 2016 04:20:33 -0500 Subject: TUI now writes to a string buffer and then to screen (should be faster, like double buffering and switch) --- scripts/automation/trex_control_plane/client_utils/text_tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/automation/trex_control_plane/client_utils') diff --git a/scripts/automation/trex_control_plane/client_utils/text_tables.py b/scripts/automation/trex_control_plane/client_utils/text_tables.py index 2fa17f09..d8928da8 100644 --- a/scripts/automation/trex_control_plane/client_utils/text_tables.py +++ b/scripts/automation/trex_control_plane/client_utils/text_tables.py @@ -25,8 +25,8 @@ def generate_trex_stats_table(): def print_table_with_header(texttable_obj, header="", untouched_header=""): header = header.replace("_", " ").title() + untouched_header print format_text(header, 'cyan', 'underline') + "\n" - print texttable_obj.draw() + "\n" + print (texttable_obj.draw() + "\n").encode('utf-8') if __name__ == "__main__": pass -- cgit 1.2.3-korg