summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liechti <cliechti@gmx.net>2016-05-14 02:25:13 +0200
committerChris Liechti <cliechti@gmx.net>2016-05-14 02:25:13 +0200
commitc20c373d854504541d4ce22bdbe308bfc1cddb42 (patch)
tree95f0fc12430babc8e0e23f41a08c26e68fc3807b
parentf542fca57c44784f77106e5ad12f51cd4755e0f1 (diff)
downloadpyserial-git-c20c373d854504541d4ce22bdbe308bfc1cddb42.tar.gz
miniterm: doc update for win32 cancel
-rw-r--r--serial/tools/miniterm.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/serial/tools/miniterm.py b/serial/tools/miniterm.py
index 7b4e3af..420bf12 100644
--- a/serial/tools/miniterm.py
+++ b/serial/tools/miniterm.py
@@ -127,7 +127,8 @@ if os.name == 'nt': # noqa
return z
def cancel(self):
- # XXX check if CancelIOEx could be used
+ # CancelIo, CancelSynchronousIo do not seem to work when using
+ # getwch, so instead, send a key to the window with the console
hwnd = ctypes.windll.kernel32.GetConsoleWindow()
ctypes.windll.user32.PostMessageA(hwnd, 0x100, 0x0d, 0)