Is there a macro to make Ctrl+C work in REPL?

Calling yield() from within the loop is the generally recommended option for this. It’s not a 100% guarantee as I understand it, but makes it much more likely that the interrupt comes through. See for eg.

1 Like