TUI should skip any non-ascii chars
authorimarom <[email protected]>
Mon, 20 Feb 2017 10:44:59 +0000 (12:44 +0200)
committerimarom <[email protected]>
Mon, 20 Feb 2017 10:45:41 +0000 (12:45 +0200)
Signed-off-by: imarom <[email protected]>
scripts/automation/trex_control_plane/stl/console/trex_tui.py

index 37ef800..b7a235d 100644 (file)
@@ -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