From: Florent Kermarrec Date: Wed, 11 Jan 2017 00:56:10 +0000 (+0100) Subject: soc/tools/litex_term.py: fix reader for c = b"\r" case X-Git-Tag: 24jan2021_ls180~1915 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab5b9389b757367bd7fd08c47ef0fad5ed3f50bc;p=litex.git soc/tools/litex_term.py: fix reader for c = b"\r" case --- diff --git a/litex/soc/tools/litex_term.py b/litex/soc/tools/litex_term.py index 53da5368..43ebbd7b 100644 --- a/litex/soc/tools/litex_term.py +++ b/litex/soc/tools/litex_term.py @@ -214,7 +214,7 @@ class LiteXTerm: while self.reader_alive: c = self.port.read() if c == b"\r": - sys.stdout.write(b"\n") + sys.stdout.buffer.write(b"\n") else: sys.stdout.buffer.write(c) sys.stdout.flush()