From bbb4b9822f094825d7e7fd1f7df716adc2598685 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 10 Apr 2017 17:19:36 +1000 Subject: py/modmicropython: Add micropython.kbd_intr() function. It controls the character that's used to (asynchronously) raise a KeyboardInterrupt exception. Passing "-1" allows to disable the interception of the interrupt character (as long as a port allows such a behaviour). --- py/mpconfig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/mpconfig.h') diff --git a/py/mpconfig.h b/py/mpconfig.h index 05cb5daaf..b6e24d205 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -445,7 +445,7 @@ # endif #endif -// Whether to provide the mp_kbd_exception object +// Whether to provide the mp_kbd_exception object, and micropython.kbd_intr function #ifndef MICROPY_KBD_EXCEPTION #define MICROPY_KBD_EXCEPTION (0) #endif -- cgit v1.2.3