Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Disable keyboard interrupt does not work ( micropython.kbd_intr(-1) )  #391

@Cees-Meijer

Description

@Cees-Meijer

Firmware and board details:
(sysname='GPy', nodename='GPy', release='1.20.0.rc13', version='v1.9.4-94bb382 on 2019-08-22', machine='GPy with ESP32')

I'm using the following code:

ExitMenu = False
micropython.kbd_intr(-1)
while not ExitMenu:
    In = input(">")
    if In == "Q" or In == "q":
        ExitMenu=True
    print("You typed:",In)

print("I'm Back!")
micropython.kbd_intr(3)

However, when the system is waiting for input and I send <ctrl>C it still gives me 'KeyboardInterrupt:' and falls back to a '>' prompt. It will not respond to any keypress, except a <ctrl>B

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions