summaryrefslogtreecommitdiff
path: root/pyserial
diff options
context:
space:
mode:
Diffstat (limited to 'pyserial')
-rw-r--r--pyserial/examples/miniterm.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyserial/examples/miniterm.py b/pyserial/examples/miniterm.py
index a4c5646..674a97c 100644
--- a/pyserial/examples/miniterm.py
+++ b/pyserial/examples/miniterm.py
@@ -23,6 +23,8 @@ if os.name == 'nt':
if z == '\0' or z == '\xe0': #functions keys
msvcrt.getch()
else:
+ if z == '\r':
+ return '\n'
return z
elif os.name == 'posix':