Issue #17209: curses.window.get_wch() now handles correctly KeyboardInterrupt (CTRL+c)
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 35f9fc1..8436f03 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -1181,6 +1181,9 @@
         return NULL;
     }
     if (ct == ERR) {
+        if (PyErr_CheckSignals())
+            return NULL;
+
         /* get_wch() returns ERR in nodelay mode */
         PyErr_SetString(PyCursesError, "no input");
         return NULL;