summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liechti <cliechti@gmx.net>2020-09-14 06:51:11 +0200
committerChris Liechti <cliechti@gmx.net>2020-09-14 06:51:11 +0200
commit0dbc2e5f96a443bca7748bb6b22bca65b90285af (patch)
tree6f3b00a75dd7dbdc78c4723896d176cab79b344c
parent1a9f0c9d319e3c038873d926277c09eb43f39bd3 (diff)
downloadpyserial-git-0dbc2e5f96a443bca7748bb6b22bca65b90285af.tar.gz
miniterm: fix double use of CTRL-T + s
use z for suspend instead fixes #497
-rw-r--r--documentation/tools.rst2
-rw-r--r--serial/tools/miniterm.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/documentation/tools.rst b/documentation/tools.rst
index 8ed7fce..898c2d7 100644
--- a/documentation/tools.rst
+++ b/documentation/tools.rst
@@ -274,7 +274,7 @@ Typing :kbd:`Ctrl+T Ctrl+H` when it is running shows the help text::
--- x X disable/enable software flow control
--- r R disable/enable hardware flow control
-:kbd:`Ctrl+T s` suspends the connection (port is opened) and reconnects when a
+:kbd:`Ctrl+T z` suspends the connection (port is opened) and reconnects when a
key is pressed. This can be used to temporarily access the serial port with an
other application, without exiting miniterm. If reconnecting fails it is
also possible to exit (:kbd:`Ctrl+]`) or change the port (:kbd:`p`).
diff --git a/serial/tools/miniterm.py b/serial/tools/miniterm.py
index 2ec155e..13d0cdd 100644
--- a/serial/tools/miniterm.py
+++ b/serial/tools/miniterm.py
@@ -589,7 +589,7 @@ class Miniterm(object):
#~ elif c == '\x0c': # CTRL+L -> cycle linefeed mode
elif c in 'pP': # P -> change port
self.change_port()
- elif c in 'sS': # S -> suspend / open port temporarily
+ elif c in 'zZ': # S -> suspend / open port temporarily
self.suspend_port()
elif c in 'bB': # B -> change baudrate
self.change_baudrate()