From 6d028fcd21df1d1954f679443ffddc35364552f7 Mon Sep 17 00:00:00 2001 From: imarom Date: Thu, 21 Jul 2016 17:21:04 +0300 Subject: faster TUI: no flickers and more... 1. made stdout full buffered (no in-middle print) 2. added TAB for filenames auto-complete --- .../trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib') diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py index 1b417d65..caa5aea8 100755 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py @@ -396,6 +396,10 @@ class CCmdArgParser(argparse.ArgumentParser): self.cmd_name = kwargs.get('prog') + # hook this to the logger + def _print_message(self, message, file=None): + self.stateless_client.logger.log(message) + def has_ports_cfg (self, opts): return hasattr(opts, "all_ports") or hasattr(opts, "ports") -- cgit 1.2.3-korg