diff options
author | 2016-07-21 17:21:04 +0300 | |
---|---|---|
committer | 2016-07-21 17:31:10 +0300 | |
commit | 6d028fcd21df1d1954f679443ffddc35364552f7 (patch) | |
tree | 57a8d3e52cacad4b5895614770e28bdc5dcb1eba /scripts/automation/trex_control_plane/stl/trex_stl_lib/utils | |
parent | 340372e2cbe5b0744896dd97793e2b0e246c25a4 (diff) |
faster TUI: no flickers and more...
1. made stdout full buffered (no in-middle print)
2. added TAB for filenames auto-complete
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/utils')
-rwxr-xr-x | scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py | 4 |
1 files changed, 4 insertions, 0 deletions
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") |