diff options
author | imarom <imarom@cisco.com> | 2017-02-20 12:44:59 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2017-02-20 12:45:41 +0200 |
commit | bf5ed38b39c61ac0dfc428817022ef46e3a062f6 (patch) | |
tree | 82b57c2e5e5f80fd3d7ee0dc86557052550d5780 /scripts/automation | |
parent | 77661de6438fe12e305d14fb68a72c67471154d6 (diff) |
TUI should skip any non-ascii chars
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'scripts/automation')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/console/trex_tui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/console/trex_tui.py b/scripts/automation/trex_control_plane/stl/console/trex_tui.py index 37ef8000..b7a235de 100644 --- a/scripts/automation/trex_control_plane/stl/console/trex_tui.py +++ b/scripts/automation/trex_control_plane/stl/console/trex_tui.py @@ -848,7 +848,7 @@ class AsyncKeys: rc = self.STATUS_NONE # fetch the stdin buffer - seq = os.read(sys.stdin.fileno(), 1024).decode() + seq = os.read(sys.stdin.fileno(), 1024).decode('ascii', errors = 'ignore') if not seq: return self.STATUS_NONE |