summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/console/trex_tui.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/automation/trex_control_plane/console/trex_tui.py')
-rw-r--r--scripts/automation/trex_control_plane/console/trex_tui.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/console/trex_tui.py b/scripts/automation/trex_control_plane/console/trex_tui.py
index febe62f4..c2048c9d 100644
--- a/scripts/automation/trex_control_plane/console/trex_tui.py
+++ b/scripts/automation/trex_control_plane/console/trex_tui.py
@@ -323,6 +323,7 @@ class TrexTUIPanelManager():
if self.show_log:
self.log.show()
+ sys.stdout.flush()
def handle_key (self, ch):
# check for the manager registered actions
@@ -393,7 +394,7 @@ class TrexTUI():
def clear_screen (self):
#os.system('clear')
# maybe this is faster ?
- sys.stderr.write("\x1b[2J\x1b[H")
+ sys.stdout.write("\x1b[2J\x1b[H")